revm_bytecode::utils

Function read_u16

Source
pub unsafe fn read_u16(ptr: *const u8) -> u16
Expand description

Read big-endian u16 from u8 pointer

ยงSafety

Pointer needs to point to at least 2 byte.