MCPcopy Create free account
hub / github.com/Nariod/RustPacker / read_u16

Function read_u16

src/pe_parser.rs:11–13  ·  view source on GitHub ↗
(data: &[u8], offset: usize)

Source from the content-addressed store, hash-verified

9}
10
11fn read_u16(data: &[u8], offset: usize) -> u16 {
12 u16::from_le_bytes([data[offset], data[offset + 1]])
13}
14
15fn read_u32(data: &[u8], offset: usize) -> u32 {
16 u32::from_le_bytes([data[offset], data[offset + 1], data[offset + 2], data[offset + 3]])

Callers 2

parse_sectionsFunction · 0.85
parse_exportsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected