OutBuffer

Constructors

this
this(size_t initial_capacity)

Members

Functions

capacity
size_t capacity()
void capacity(size_t new_capacity)
clear
void clear()
data
ubyte[] data()
length
size_t length()
put
void put(T bytes)
put
void put(T value)

Dumps raw bytes into the buffer. No endianness conversion or whatever.

putUnsafe
void putUnsafe(T bytes)
void putUnsafe(T value)

Responsibility that there's enough capacity is on the user

shrink
void shrink(size_t size)

Remove last elements such that new size is equal to size.

Meta