Function uniffi::lower_into_buffer [−][src]
pub fn lower_into_buffer<T: ViaFfi>(value: T) -> RustBuffer
Expand description
A helper function to lower a type by serializing it into a buffer.
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 serialized buffer of bytes.