implement annotation

This commit is contained in:
Jean-Marie Mineau 2023-08-25 11:26:16 +02:00
parent 1b503549b3
commit d5b8222491
Signed by: histausse
GPG key ID: B66AEEDA9B645AD2
3 changed files with 65 additions and 14 deletions

View file

@ -5,15 +5,15 @@ use std::io::Write;
use crate::{Error, ReadSeek, Result, Serializable};
/// Signed LEB128, variable-length
#[derive(Debug, Clone, PartialEq, Eq)]
#[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord)]
pub struct Sleb128(pub i32);
/// Unsigned LEB128, variable-length
#[derive(Debug, Clone, PartialEq, Eq)]
#[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord)]
pub struct Uleb128(pub u32);
/// Unsigned LEB128 plus 1, variable-length
#[derive(Debug, Clone, PartialEq, Eq)]
#[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord)]
pub struct Uleb128p1(pub u32);
impl Sleb128 {