revm_interpreter/instructions/
utility.rs

1pub(crate) unsafe fn read_i16(ptr: *const u8) -> i16 {
2    i16::from_be_bytes(core::slice::from_raw_parts(ptr, 2).try_into().unwrap())
3}
4
5pub(crate) unsafe fn read_u16(ptr: *const u8) -> u16 {
6    u16::from_be_bytes(core::slice::from_raw_parts(ptr, 2).try_into().unwrap())
7}