pub fn serialize_to_buffer<T>(
v: T,
buffer: BytesMut,
) -> CompactProtocolSerializer<BytesMut>Expand description
Serialize a Thrift value using the compact 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.