It is sometimes convenient to consider a binary chunk as a byte array. This module provides several useful functions to deal with byte arrays.
Function or value | Description |
Full Usage:
extractCString arg1 arg2
Parameters:
byte[]
arg1 : int
Returns: string
|
|
Full Usage:
extractCStringFromSpan arg1 arg2
Parameters:
ReadOnlySpan<byte>
arg1 : int
Returns: string
|
|
Full Usage:
findIdxs offset pattern buf
Parameters:
uint64
pattern : byte[]
buf : byte[]
Returns: uint64 list
|
Find and return the offsets of all the matching byte positions. The final byte positions are adjusted by the given offset.
|
Full Usage:
ofHexString arg1
Parameters:
string
Returns: byte[]
|
|
|
|
|
|
Full Usage:
toUInt32Arr arg1
Parameters:
byte[]
Returns: uint32[]
|
|
Full Usage:
tryFindIdx arg1 arg2 arg3
Parameters:
uint64
arg1 : byte[]
arg2 : byte[]
Returns: uint64 option
|
|