Creates a HiBON Document from a buffer @param data - buffer
Creates a replicate of a Document from another Document The buffer reused not copied @param doc - Document which is replicated
Creates a document which is based on HiBON @param hibon - reference to the HiBON object
The deligate used by the valid function to report errors
HiBON Document value type
Same as data
Makes a cope od document @rapam doc - Document that will be copied
Gets the internal buffer @return the buffer of the HiBON document
@return true if the key exist in the Document
@return true if the index exist in the Document
* The Document must only contain member names which represents an uint number * Throws an std.conv.ConvException if the keys can not be convert to an uint * @return range of indices of the type of uint in the Document
Check if the Document can be clasified as an Array @return true if all the keys in ordred numbers
Check if a Document format is the correct HiBON format. Uses the valid function @return true if the Document is inorder
@return range of the member keys in the document
Find the element with key @return the element with the key, if on element with this key has been found an empty element is returned
@return the element with the key @throw if the element with the key is not found then and HiBONException is thrown
@return the element with the index @throw if the element with the key is not found then and HiBONException is thrown Or of the key is not an index a std.conv.ConvException is thrown
@return range of Element's
This range is used to generate and range of same type U If the Document contains and Array of the elements this range can be used @param Range (Array) of the type U
Function check's if the Document is a valid HiBON format @param error_callback - if the delegate error_callback is the this function is call when a error occures @return error code of the validation
Returns HiBON version @return HiBON version
Counts the number of members in a Document @return number of members in in the Document
Append a full element to a buffer @param buffer = is the target buffer @param type = is the HiBON type @param key = is the member key @param x = is the value of the element @param index = is offset index in side the buffer and index with be progressed
Append the key to the buffer @param buffer = is the target buffer @param type = is the HiBON type @param key = is the member key @param index = is offset index in side the buffer and index with be progressed
@param key, which size needs to be calculated @return the number of bytes taken up by the key in the HiBON serialized stream
@param key, which size needs to be calculated @return the number of bytes taken up by the key in the HiBON serialized stream
Calculates the number of bytes taken up by an element in the HiBON serialized stream @param type = is the HIBON type @param key = is the key name @param x = is the value @return the number of bytes taken up by the element
HiBON Element representation
Range of the Document
Actual data
Document is used for storage different data and provide possibility to read and analyze data