pub enum ArgType {
Show 32 variants
Intptr,
Int8,
Int16,
Int32,
Int64,
Bool,
Csum,
Int16be,
Int32be,
Int64be,
String,
StringNoz,
StringConst,
Len,
Proc,
Glob,
Bitsize,
Bytesize,
Vma,
Vma64,
OffsetOf,
Fmt,
Ptr,
Ptr64,
Flags,
Const,
Text,
Void,
Array,
CompressedImage,
Ident(Identifier),
Template(Identifier),
}
Expand description
All the different basic types supported in Syzlang
Variants§
Intptr
Int8
Int16
Int32
Int64
Bool
Csum
Int16be
Int32be
Int64be
String
StringNoz
StringConst
Len
Proc
Glob
Bitsize
Bytesize
Vma
Vma64
OffsetOf
Fmt
Ptr
Ptr64
Flags
Const
Text
Void
Array
CompressedImage
Ident(Identifier)
Template(Identifier)
Implementations§
Source§impl ArgType
impl ArgType
pub fn evaluate_size(&self, arch: &Arch) -> Result<usize, Error>
pub fn refers_c_string(&self) -> bool
pub fn is_filename(&self) -> bool
Source§impl ArgType
impl ArgType
pub fn is_int(&self) -> bool
pub fn is_ptr(&self) -> bool
pub fn is_vma(&self) -> bool
pub fn is_array(&self) -> bool
pub fn bytes_as_int(&self, bytes: &[u8]) -> Result<Number, Error>
pub fn matches_name(&self, name: &str) -> bool
pub fn arg_size(&self, ptrsize: usize) -> Result<usize, Error>
pub fn big_endian(&self) -> Result<bool, Error>
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ArgType
impl<'de> Deserialize<'de> for ArgType
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ArgType
impl StructuralPartialEq for ArgType
Auto Trait Implementations§
impl Freeze for ArgType
impl RefUnwindSafe for ArgType
impl Send for ArgType
impl Sync for ArgType
impl Unpin for ArgType
impl UnwindSafe for ArgType
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more