Function bincode::encode_into_slice
source · [−]pub fn encode_into_slice<E: Encode, C: Config>(
val: E,
dst: &mut [u8],
config: C
) -> Result<usize, EncodeError>
Expand description
Encode the given value into the given slice. Returns the amount of bytes that have been written.
See the config module for more information on configurations.