Document.build

Append a full element to a buffer

struct Document
@trusted static pure
void
build
(
T
Key
)
(
ref ubyte[] buffer
,,
Key key
,
const(T) x
,
ref size_t index
)
if (
is(Key : const(char[])) ||
is(Key == uint)
)

Parameters

buffer ubyte[]

is the target buffer

type Type

is the HiBON type

key Key

is the member key

x const(T)

is the value of the element

index size_t

is offset index in side the buffer and index with be progressed

Meta