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

Value
alias Value = ValueT!(true, HiBONT*, Document)
Undocumented in source.

Functions

dispose
void dispose()
Undocumented in source. Be warned that the author may not have intended to support it.
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

last_index
int last_index()
Undocumented in source. Be warned that the author may not have intended to support it.
length
size_t length()

@return the number of members in the HiBON

opAssign
void opAssign(T r)
Undocumented in source. Be warned that the author may not have intended to support it.
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(HiBONT x, const(char[]) key)
Undocumented in source. Be warned that the author may not have intended to support it.
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

opIndexAssign
void opIndexAssign(HiBONT x, size_t index)
Undocumented in source. Be warned that the author may not have intended to support it.
opOpAssign
void opOpAssign(HiBONT cat)
Undocumented in source. Be warned that the author may not have intended to support it.
opOpAssign
void opOpAssign(T cat)
Undocumented in source. Be warned that the author may not have intended to support it.
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

Properties

owns
bool owns [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
readonly
bool readonly [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.

Structs

IndexRange
struct IndexRange
Undocumented in source.
KeyRange
struct KeyRange
Undocumented in source.
Member
struct Member

* Internal Member in the HiBON class

Variables

error
uint error;
Undocumented in source.

Meta