Constructs a buffer.
Writes the argument to buffer and stores the reference of writed content if the argument size is smaller than threshold, otherwise stores the reference of argument directly.
Returns the buffer contents that excluding references.
Forwards to all buffer contents.
auto packer = packer(RefBuffer(16)); // threshold is 16 // packs data writev(fd, cast(void*)packer.buffer.vector.ptr, packer.buffer.vector.length);
RefBuffer is a reference stored buffer for more efficient serialization