Crates.io | winstructs |
lib.rs | winstructs |
version | 0.3.2 |
source | src |
created_at | 2019-05-08 15:15:50.54613 |
updated_at | 2023-08-23 10:13:43.990341 |
description | Common structures used in parsing various windows protocols |
homepage | https://github.com/omerbenamram/winstructs/tree/master |
repository | https://github.com/omerbenamram/winstructs/tree/master |
max_upload_size | |
id | 132832 |
size | 49,753 |
This crate contains definitions and some parsing logic for structures that are common across windows formats.
Consult the Documentation for supported structs and usage instructions.
Here is an example for parsing a GUID.
use winstructs::guid::Guid;
fn main() {
let raw_guid: &[u8] = &[0x25, 0x96, 0x84, 0x54, 0x78, 0x54, 0x94, 0x49,
0xa5, 0xba, 0x3e, 0x3b, 0x3, 0x28, 0xc3, 0xd];
let guid = Guid::from_buffer(raw_guid).unwrap();
assert_eq!(format!("{}", guid), "54849625-5478-4994-A5BA-3E3B0328C30D");
}