[−][src]Trait memflow::types::byte_swap::ByteSwap
A trait specifying that a type/struct can be byte swapped.
This is especially useful when reading/writing from/to targets with a different architecture to the one memflow is compiled with.
Examples
use memflow::types::ByteSwap; use memflow_derive::*; #[repr(C)] #[derive(ByteSwap)] pub struct Test { pub type1: i32, pub type2: u32, pub type3: i64, } let mut test = Test { type1: 10, type2: 1234, type3: -1234, }; test.byte_swap();