pub fn decode_quantity_with_sentinel(
bytes: &[u8],
precision: u8,
field: &'static str,
row: usize,
) -> Result<Quantity, EncodingError>Expand description
Decodes a [Quantity] from raw bytes, using precision 0 for sentinel values.
For order book data where sentinel values indicate empty levels.
ยงErrors
Returns an EncodingError::ParseError if the quantity value is out of bounds.