add coded item to generated dex
This commit is contained in:
parent
3468bc0463
commit
53d321c7fe
5 changed files with 797 additions and 35 deletions
|
|
@ -1,19 +1,20 @@
|
|||
//! The implementation of serializable for LEB128 types.
|
||||
|
||||
use std::hash::Hash;
|
||||
use std::io::Write;
|
||||
|
||||
use crate::{Error, ReadSeek, Result, Serializable};
|
||||
|
||||
/// Signed LEB128, variable-length
|
||||
#[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord)]
|
||||
#[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)]
|
||||
pub struct Sleb128(pub i32);
|
||||
|
||||
/// Unsigned LEB128, variable-length
|
||||
#[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord)]
|
||||
#[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)]
|
||||
pub struct Uleb128(pub u32);
|
||||
|
||||
/// Unsigned LEB128 plus 1, variable-length
|
||||
#[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord)]
|
||||
#[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)]
|
||||
pub struct Uleb128p1(pub u32);
|
||||
|
||||
impl Sleb128 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue