pub fn check_length(input: &mut InputBuffer, expected_length: u32) -> Result<(), rmp::decode::ValueReadError> {
  if rmp::decode::read_array_len(input)? == expected_length {
    Ok(())
  } else {
    Err(rmp::decode::ValueReadError::TypeMismatch(rmp::Marker::Reserved))
  }
}
/// Assert that an MessagePack value is an array length with the value specified
Assert that an MessagePack value is an array length with the value specified
Assert that an MessagePack value is an array length with the value specified
pub fn check_length(input: &mut InputBuffer, expected_length: u32) -> Result<(), rmp::decode::ValueReadError> {
  if rmp::decode::read_array_len(input)? == expected_length {
    Ok(())
  } else {
    Err(rmp::decode::ValueReadError::TypeMismatch(rmp::Marker::Reserved))
  }
}
pub fn check_length ( input : & mut InputBuffer , expected_length : u32 ) -> Result < ( ) , rmp :: decode :: ValueReadError > { if rmp :: decode :: read_array_len ( input ) ? == expected_length { Ok ( ( ) ) } else { Err ( rmp :: decode :: ValueReadError :: TypeMismatch ( rmp :: Marker :: Reserved ) ) } }
Assert that an MessagePack value is an array length with the value specified
Assert that an MessagePack value is an array length with the value specified
input
&mut InputBuffer
expected_length
u32
input
&mut InputBuffer
expected_length
u32