Struct winparsingtools::structs::Guid
source · pub struct Guid { /* private fields */ }
Expand description
GUID struct parser. From omerbenamram
Implementations§
source§impl Guid
impl Guid
sourcepub fn new(data1: u32, data2: u16, data3: u16, data4: [u8; 8]) -> Self
pub fn new(data1: u32, data2: u16, data3: u16, data4: [u8; 8]) -> Self
Creates a new GUID directly from it’s components.
sourcepub fn from_buffer(buffer: &[u8]) -> Result<Self>
pub fn from_buffer(buffer: &[u8]) -> Result<Self>
Reads a GUID from a buffer.
sourcepub fn from_reader<T: Read>(stream: &mut T) -> Result<Self>
pub fn from_reader<T: Read>(stream: &mut T) -> Result<Self>
Reads a GUID from a Read
instance.