Functions
assertByteArrayOffsetIsNotOutOfRange
assertByteArrayOffsetIsNotOutOfRange(
codecDescription
,offset
,bytesLength
):void
Asserts that a given offset is within the byte array bounds. This range is between 0 and the byte array length and is inclusive. An offset equals to the byte array length is considered a valid offset as it allows the post-offset of codecs to signal the end of the byte array.
Parameters
Parameter | Type | Description |
---|---|---|
codecDescription | string | A description of the codec used by the assertion error. |
offset | number | The offset to check. |
bytesLength | number | The length of the byte array from which the offset should be within bounds. |
Returns
void