getInt8
Reads an Int8 value from the byte array at the specified offset.
This function reads a single byte (Int8) from the byte array at the specified offset
.
Return
The Int8 value read from the byte array.
Parameters
The offset (index) in the byte array from which the Int8 value should be read. Must be within the valid range of the array's indices.
Throws
If the offset
is negative or greater than or equal to the array's size.
Gets an 8-bit signed integer (Int8) from this ByteString at the specified offset.
This function retrieves a single byte from the ByteString at the given offset and returns it as a signed byte.
Return
The 8-bit signed integer value at the specified offset.
Parameters
The index from which to read the Int8 value.
Throws
if the offset is out of bounds or if the size of this ByteString is less than Byte.SIZE_BYTES.