[−][src]Enum iced_x86::MemorySize
Size of a memory reference
Variants (Non-exhaustive)
Unknown size or the instruction doesn't reference any memory (eg. LEA
)
Memory location contains a u8
Memory location contains a u16
Memory location contains a u32
Memory location contains a u52
Memory location contains a u64
Memory location contains a u128
Memory location contains a u256
Memory location contains a u512
Memory location contains a i8
Memory location contains a i16
Memory location contains a i32
Memory location contains a i64
Memory location contains a i128
Memory location contains a i256
Memory location contains a i512
Memory location contains a seg:ptr pair, u16
(offset) + u16
(segment/selector)
Memory location contains a seg:ptr pair, u32
(offset) + u16
(segment/selector)
Memory location contains a seg:ptr pair, u64
(offset) + u16
(segment/selector)
Memory location contains a 16-bit offset (JMP/CALL WORD PTR [mem]
)
Memory location contains a 32-bit offset (JMP/CALL DWORD PTR [mem]
)
Memory location contains a 64-bit offset (JMP/CALL QWORD PTR [mem]
)
Memory location contains two u16
s (16-bit BOUND
)
Memory location contains two u32
s (32-bit BOUND
)
32-bit BNDMOV
, 2 x u32
64-bit BNDMOV
, 2 x u64
Memory location contains a 16-bit limit and a 32-bit address (eg. LGDTW
, LGDTD
)
Memory location contains a 16-bit limit and a 64-bit address (eg. LGDTQ
)
Memory location contains a f16
Memory location contains a f32
Memory location contains a f64
Memory location contains a f80
Memory location contains a f128
Memory location contains a bfloat16
Memory location contains a 14-byte FPU environment (16-bit FLDENV
/FSTENV
)
Memory location contains a 28-byte FPU environment (32/64-bit FLDENV
/FSTENV
)
Memory location contains a 94-byte FPU environment (16-bit FSAVE
/FRSTOR
)
Memory location contains a 108-byte FPU environment (32/64-bit FSAVE
/FRSTOR
)
Memory location contains 512-bytes of FXSAVE
/FXRSTOR
data
Memory location contains 512-bytes of FXSAVE64
/FXRSTOR64
data
32-bit XSAVE
area
64-bit XSAVE
area
Memory location contains a 10-byte bcd
value (FBLD
/FBSTP
)
64-bit location: TILECFG (LDTILECFG
/STTILECFG
)
Tile data
80-bit segment descriptor and selector: 0-7 = descriptor, 8-9 = selector
384-bit AES 128 handle (Key Locker)
512-bit AES 256 handle (Key Locker)
16-bit location: 2 x u8
16-bit location: 2 x i8
32-bit location: 4 x u8
32-bit location: 4 x i8
32-bit location: 2 x u16
32-bit location: 2 x i16
32-bit location: 2 x bfloat16
64-bit location: 8 x u8
64-bit location: 8 x i8
64-bit location: 4 x u16
64-bit location: 4 x i16
64-bit location: 2 x u32
64-bit location: 2 x i32
64-bit location: 4 x f16
64-bit location: 2 x f32
128-bit location: 16 x u8
128-bit location: 16 x i8
128-bit location: 8 x u16
128-bit location: 8 x i16
128-bit location: 4 x u32
128-bit location: 4 x i32
128-bit location: 2 x u52
128-bit location: 2 x u64
128-bit location: 2 x i64
128-bit location: 8 x f16
128-bit location: 4 x f32
128-bit location: 2 x f64
128-bit location: 4 x (2 x bfloat16
)
256-bit location: 32 x u8
256-bit location: 32 x i8
256-bit location: 16 x u16
256-bit location: 16 x i16
256-bit location: 8 x u32
256-bit location: 8 x i32
256-bit location: 4 x u52
256-bit location: 4 x u64
256-bit location: 4 x i64
256-bit location: 2 x u128
256-bit location: 2 x i128
256-bit location: 16 x f16
256-bit location: 8 x f32
256-bit location: 4 x f64
256-bit location: 2 x f128
256-bit location: 8 x (2 x bfloat16
)
512-bit location: 64 x u8
512-bit location: 64 x i8
512-bit location: 32 x u16
512-bit location: 32 x i16
512-bit location: 16 x u32
512-bit location: 16 x i32
512-bit location: 8 x u52
512-bit location: 8 x u64
512-bit location: 8 x i64
256-bit location: 4 x u128
512-bit location: 16 x f32
512-bit location: 8 x f64
512-bit location: 16 x (2 x bfloat16
)
Broadcast u32
to 64-bits
Broadcast i32
to 64-bits
Broadcast f32
to 64-bits
Broadcast u32
to 128-bits
Broadcast i32
to 128-bits
Broadcast u52
to 128-bits
Broadcast u64
to 128-bits
Broadcast i64
to 128-bits
Broadcast f32
to 128-bits
Broadcast f64
to 128-bits
Broadcast u32
to 256-bits
Broadcast i32
to 256-bits
Broadcast u52
to 256-bits
Broadcast u64
to 256-bits
Broadcast i64
to 256-bits
Broadcast f32
to 256-bits
Broadcast f64
to 256-bits
Broadcast u32
to 512-bits
Broadcast i32
to 512-bits
Broadcast u52
to 512-bits
Broadcast u64
to 512-bits
Broadcast i64
to 512-bits
Broadcast f32
to 512-bits
Broadcast f64
to 512-bits
Broadcast 2 x i16
to 128-bits
Broadcast 2 x i16
to 256-bits
Broadcast 2 x i16
to 512-bits
Broadcast 2 x u32
to 128-bits
Broadcast 2 x u32
to 256-bits
Broadcast 2 x u32
to 512-bits
Broadcast 2 x i32
to 128-bits
Broadcast 2 x i32
to 256-bits
Broadcast 2 x i32
to 512-bits
Broadcast 2 x bfloat16
to 128-bits
Broadcast 2 x bfloat16
to 256-bits
Broadcast 2 x bfloat16
to 512-bits
Implementations
impl MemorySize
[src]
#[must_use]pub fn info(self) -> &'static MemorySizeInfo
[src]
Gets the memory size info
Examples
use iced_x86::*; let info = MemorySize::Packed256_UInt16.info(); assert_eq!(32, info.size());
#[must_use]pub fn size(self) -> usize
[src]
Gets the size in bytes of the memory location or 0 if it's not accessed by the instruction or unknown or variable sized
Examples
use iced_x86::*; assert_eq!(4, MemorySize::UInt32.size()); assert_eq!(32, MemorySize::Packed256_UInt16.size()); assert_eq!(8, MemorySize::Broadcast512_UInt64.size());
#[must_use]pub fn element_size(self) -> usize
[src]
Gets the size in bytes of the packed element. If it's not a packed data type, it's equal to size()
.
Examples
use iced_x86::*; assert_eq!(4, MemorySize::UInt32.element_size()); assert_eq!(2, MemorySize::Packed256_UInt16.element_size()); assert_eq!(8, MemorySize::Broadcast512_UInt64.element_size());
#[must_use]pub fn element_type(self) -> Self
[src]
Gets the element type if it's packed data or self
if it's not packed data
Examples
use iced_x86::*; assert_eq!(MemorySize::UInt32, MemorySize::UInt32.element_type()); assert_eq!(MemorySize::UInt16, MemorySize::Packed256_UInt16.element_type()); assert_eq!(MemorySize::UInt64, MemorySize::Broadcast512_UInt64.element_type());
#[must_use]pub fn element_type_info(self) -> &'static MemorySizeInfo
[src]
Gets the element type info if it's packed data or self
if it's not packed data
Examples
use iced_x86::*; assert_eq!(MemorySize::UInt32, MemorySize::UInt32.element_type_info().memory_size()); assert_eq!(MemorySize::UInt16, MemorySize::Packed256_UInt16.element_type_info().memory_size()); assert_eq!(MemorySize::UInt64, MemorySize::Broadcast512_UInt64.element_type_info().memory_size());
#[must_use]pub fn is_signed(self) -> bool
[src]
true
if it's signed data (signed integer or a floating point value)
Examples
use iced_x86::*; assert!(!MemorySize::UInt32.is_signed()); assert!(MemorySize::Int32.is_signed()); assert!(MemorySize::Float64.is_signed());
#[must_use]pub fn is_packed(self) -> bool
[src]
true
if this is a packed data type, eg. MemorySize::Packed128_Float32
Examples
use iced_x86::*; assert!(!MemorySize::UInt32.is_packed()); assert!(MemorySize::Packed256_UInt16.is_packed()); assert!(!MemorySize::Broadcast512_UInt64.is_packed());
#[must_use]pub fn element_count(self) -> usize
[src]
Gets the number of elements in the packed data type or 1
if it's not packed data (is_packed()
)
Examples
use iced_x86::*; assert_eq!(1, MemorySize::UInt32.element_count()); assert_eq!(16, MemorySize::Packed256_UInt16.element_count()); assert_eq!(1, MemorySize::Broadcast512_UInt64.element_count());
impl MemorySize
[src]
#[must_use]pub fn is_broadcast(self) -> bool
[src]
Checks if it is a broadcast memory type
Examples
use iced_x86::*; assert!(!MemorySize::Packed64_Float16.is_broadcast()); assert!(MemorySize::Broadcast512_UInt64.is_broadcast());
Trait Implementations
impl Clone for MemorySize
[src]
fn clone(&self) -> MemorySize
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for MemorySize
[src]
impl Debug for MemorySize
[src]
impl Default for MemorySize
[src]
impl Eq for MemorySize
[src]
impl Hash for MemorySize
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Ord for MemorySize
[src]
fn cmp(&self, other: &MemorySize) -> Ordering
[src]
#[must_use]fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn clamp(self, min: Self, max: Self) -> Self
[src]
impl PartialEq<MemorySize> for MemorySize
[src]
impl PartialOrd<MemorySize> for MemorySize
[src]
fn partial_cmp(&self, other: &MemorySize) -> Option<Ordering>
[src]
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl StructuralEq for MemorySize
[src]
impl StructuralPartialEq for MemorySize
[src]
Auto Trait Implementations
impl RefUnwindSafe for MemorySize
impl Send for MemorySize
impl Sync for MemorySize
impl Unpin for MemorySize
impl UnwindSafe for MemorySize
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,