Skip to main content

get_array_len

Function get_array_len 

Source
pub fn get_array_len<B: Buf>(
    buf: &mut B,
    flexible: bool,
) -> Result<usize, ProtocolError>
Expand description

Read a non-nullable array length. Returns an error if the encoded value is null (−1 / 0).