ByteDataReader
This class provides methods for reading various data types from a byte array ByteArray.
It maintains an internal cursor that indicates the current reading position within the byte array. The peek...()
methods allow reading data without moving the cursor, while the get...()
methods read and advance the cursor.
Parameters
The byte array to read from.
Constructors
Functions
Reads a ByteString from the byte array and advances the cursor.
Reads an Int16 value in little-endian order from the byte array and advances the cursor.
Reads an Int32 value in little-endian order from the byte array and advances the cursor.
Reads an Int64 value in little-endian order from the byte array and advances the cursor.
Reads a UInt16 value in little-endian order from the byte array and advances the cursor.
Reads a UInt32 value in little-endian order from the byte array and advances the cursor.
Reads a UInt64 value in little-endian order from the byte array and advances the cursor.
Gets the number of bytes remaining to be read from the current cursor position.
Reads a ByteString from the byte array without advancing the cursor.
Reads an Int16 value in little-endian order from the byte array without advancing the cursor.
Reads an Int32 value in little-endian order from the byte array without advancing the cursor.
Reads an Int64 value in little-endian order from the byte array without advancing the cursor.
Reads a String from the byte array without advancing the cursor.
Reads a UInt16 value from the byte array without advancing the cursor.
Reads a UInt16 value in little-endian order from the byte array without advancing the cursor.
Reads a UInt32 value from the byte array without advancing the cursor.
Reads a UInt32 value in little-endian order from the byte array without advancing the cursor.
Reads a UInt64 value from the byte array without advancing the cursor.
Reads a UInt64 value in little-endian order from the byte array without advancing the cursor.
Skips a specified number of bytes in the byte array.