⚠️ VeridianOS Kernel Documentation - This is low-level kernel code. All functions are unsafe unless explicitly marked otherwise. no_std

decode_length

Function decode_length 

Source
pub fn decode_length(data: &[u8]) -> Result<(usize, usize), KernelError>
Expand description

Decode a BER definite-length value.

Returns (length, bytes_consumed) or an error if the data is truncated.