HiBONT

HiBON is a generate obje52ct of the HiBON format

Destructor

~this
~this()

Destructor

Members

Aliases

Members
alias Members = RBTreeT!(Member*)

Gets the internal buffer @return the buffer of the HiBON document

Functions

expropriate
HiBONT* expropriate()

Expropriate the members to the return @return The new owner of the members

hasMember
bool hasMember(const(char[]) key)

@param key = member key @return true if the member with the key exists

indices
IndexRange indices()

A list of indices @return returns false if some index is not a number;

isArray
bool isArray()

Check if the HiBON is an Array @return true if all keys is indices and are consecutive

keys
KeyRange keys()

@return a list of the member keys

length
size_t length()

@return the number of members in the HiBON

opIndex
const(Member*) opIndex(const(char[]) key)

Access an member at key @param key = member key @return the Member at the key @throw if the an member with the key does not exist an HiBONException is thrown

opIndex
const(Member*) opIndex(size_t index)

Access an member at index @param index = member index @return the Member at the index @throw if the an member with the index does not exist an HiBONException is thrown Or an std.conv.ConvException is thrown if the key is not an index

opIndexAssign
void opIndexAssign(T x, const(char[]) key)

Assign and member x with the key @param x = parameter value @param key = member key

opIndexAssign
void opIndexAssign(T x, size_t index)

Assign and member x with the index @param x = parameter value @paramindex = member index

opSlice
Members.Range opSlice()

@return Range of members

remove
void remove(const(char[]) key)

Removes a member with name of key @param key = name of the member to be removed

serialize
immutable(ubyte[]) serialize()

Generated the serialized HiBON @return the byte stream

serialize_size
size_t serialize_size()

Calculated the size in bytes of serialized HiBON @return the size in bytes

size
size_t size()

Calculate the size in bytes of HiBON payload @return the size in bytes

Structs

Member
struct Member

* Internal Member in the HiBON class