tagion.hibon.HiBONBase

Undocumented in source.

Members

Aliases

binread
alias binread(T, R) = bin.read!(T, Endian.littleEndian, R)
Undocumented in source.

Enums

Type
enum Type

HiBON Type codes

isBasicValueType
eponymoustemplate isBasicValueType(T)
Undocumented in source.
isKey
eponymoustemplate isKey(T)
Undocumented in source.
isKeyString
eponymoustemplate isKeyString(T)
Undocumented in source.

Functions

array_write
void array_write(ubyte[] buffer, T array, size_t index)

Helper function to serialize an array of the type T of a HiBON

binwrite
void binwrite(R range, T value, I index)

Helper function to serialize a HiBON

isArray
bool isArray(R keys)

Check if all the keys in range is indices and are consecutive

isHiBONBaseType
bool isHiBONBaseType(Type type)
isLEB128Basic
bool isLEB128Basic(Type type)
Undocumented in source. Be warned that the author may not have intended to support it.
isNative
bool isNative(Type type)
isNativeArray
bool isNativeArray(Type type)
isValidType
bool isValidType(Type type)
is_index
bool is_index(const(char[]) a, uint result)

Converts from a text to a index

is_key_ordered
bool is_key_ordered(R range)

Checks if the keys in the range is ordred

is_key_valid
bool is_key_valid(const(char[]) a)
less_than
bool less_than(string a, string b)

This function decides the order of the HiBON keys

Manifest constants

HIBON_VERSION
enum HIBON_VERSION;
Undocumented in source.

Templates

TypedefBase
template TypedefBase(T)

Converts to the HiBON TypedefType except for sdt_t

Unions

ValueT
union ValueT(bool NATIVE = false, HiBON, Document)

HiBON Generic value used by the HiBON class and the Document struct

Meta