[][src]Function uniffi::lower_into_bytebuffer

pub fn lower_into_bytebuffer<T: ViaFfi>(value: T) -> ByteBuffer

A helper function to lower a type by serializing it into a bytebuffer.

For complex types were it's too fiddly or too unsafe to convert them into a special-purpose C-compatible value, you can use this helper function to implement lower() in terms of write() and pass the value as a serialzied byte buffer.