Error handling

This commit is contained in:
Ondrej Babec
2022-02-27 15:48:09 +01:00
parent 3cb9de0371
commit 4eaa83bf1c
14 changed files with 421 additions and 41 deletions

View File

@@ -4,6 +4,7 @@ use core::str;
use crate::encoding::variable_byte_integer::VariableByteIntegerDecoder;
#[derive(Debug)]
#[derive(Clone)]
pub struct EncodedString<'a> {
pub string: &'a str,
pub len: u16,
@@ -20,6 +21,7 @@ impl EncodedString<'_> {
}
#[derive(Debug)]
#[derive(Clone)]
pub struct BinaryData<'a> {
pub bin: &'a [u8],
pub len: u16,