Skip to main content

prepend_len

Function prepend_len 

Source
pub fn prepend_len(data: &[u8]) -> Vec<u8> 
Expand description

Prepend the LEB128-encoded length of data to data.

Returns len(data) || data where len() uses unsigned LEB128.