Function PacketPeer.encodeBufferMaxSize
Maximum buffer size allowed when encoding Variant
s. Raise this value to support heavier memory allocations.
The putVar
method allocates memory on the stack, and the buffer used will grow automatically to the closest power of two to match the size of the Variant
. If the Variant
is bigger than encode_buffer_max_size
, the method will error out with constant ERR_OUT_OF_MEMORY
.
long encodeBufferMaxSize() nothrow @property @nogc;
void encodeBufferMaxSize
(
long v
) nothrow @property @nogc;