write_length_prefixed

Function write_length_prefixed 

Source
pub fn write_length_prefixed(data: &[u8]) -> *mut u8
Expand description

Write data with length prefix

Returns pointer to allocated memory containing: [4 bytes length][data]