| 23 | /// Error type used by `blobby` functions |
| 24 | #[derive(Debug, Eq, PartialEq, Copy, Clone)] |
| 25 | pub enum Error { |
| 26 | /// Decoded VLQ number is too big |
| 27 | InvalidVlq, |
| 28 | /// Invalid de-duplicated blob index |
| 29 | InvalidIndex, |
| 30 | /// Unexpected end of data |
| 31 | UnexpectedEnd, |
| 32 | /// Not enough elements for `BlobNIterator` |
| 33 | NotEnoughElements, |
| 34 | /// Bad array length was provided to [`parse_as_array`] |
| 35 | BadArrayLen, |
| 36 | } |
| 37 | |
| 38 | const NEXT_MASK: u8 = 0b1000_0000; |
| 39 | const VAL_MASK: u8 = 0b0111_1111; |
nothing calls this directly
no outgoing calls
no test coverage detected