Documentation ¶
Overview ¶
nopanicslicereader provides little convenience utilities to read "native" endian values from a slice at given offset. Zeroes are returned on out of bounds access instead of panic.
Index ¶
- func Int32(b []byte, offs uint) int32
- func Ptr(b []byte, offs uint) libpf.Address
- func PtrDiff16(b []byte, offs uint) libpf.Address
- func PtrDiff32(b []byte, offs uint) libpf.Address
- func Uint16(b []byte, offs uint) uint16
- func Uint32(b []byte, offs uint) uint32
- func Uint64(b []byte, offs uint) uint64
- func Uint8(b []byte, offs uint) uint8
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PtrDiff16 ¶
PtrDiff16 reads one 16-bit unsigned integer from given byte slice offset and returns it as an address
func PtrDiff32 ¶
PtrDiff32 reads one 32-bit unsigned integer from given byte slice offset and returns it as an address
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.