pub fn serialize_to_buffer<T>(
v: T,
buffer: BytesMut,
) -> BinaryProtocolSerializer<BytesMut>Expand description
Serialize a Thrift value using the binary protocol to a pre-allocated buffer.
This will panic if the buffer is not large enough. A buffer at least as
large as the return value of serialize_size will not panic.