HiBON

HiBON is a generate object of the HiBON format

Members

Aliases

Value
alias Value = ValueT!(true, HiBON, Document)

Gets the internal buffer

Classes

Member
class Member

Internal Member in the HiBON class

Functions

hasMember
bool hasMember(string key)
hasMember
bool hasMember(INDEX index)
indices
auto indices()
isArray
bool isArray()

Check if the HiBON is an Array

keys
auto keys()
length
size_t length()
opIndex
const(Member) opIndex(string key)

Access an member at key

opIndex
const(Member) opIndex(INDEX index)

Access an member at index

opIndexAssign
void opIndexAssign(T x, string key)

Assign and member x with the key

opIndexAssign
void opIndexAssign(T x, INDEX index)

Assign and member x with the index

opSlice
auto opSlice()
remove
void remove(string key)

Removes a member with name of key

remove
void remove(INDEX index)

Removes a member with name of key

serialize
immutable(ubyte[]) serialize()

Generated the serialized HiBON

serialize_size
size_t serialize_size()

Calculated the size in bytes of serialized HiBON

size
size_t size()

Calculated the size in bytes of HiBON payload