solana_sdk::short_vec
pub fn decode_len(bytes: &[u8]) -> (usize, usize)
Return the decoded value and how many bytes it consumed.