implement annotation
This commit is contained in:
parent
1b503549b3
commit
d5b8222491
3 changed files with 65 additions and 14 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue