read_length_prefixed

Function read_length_prefixed 

Source
pub unsafe fn read_length_prefixed(ptr: i32) -> Vec<u8> 
Expand description

Read a length-prefixed value from a pointer

Format: [4 bytes u32 LE length][data]

§Safety

Caller must ensure ptr points to valid length-prefixed data