checkBounds
Validates array bounds checks for buffer offset and length parameters. Marked as inline so that validation compiles directly into call sites, leaving zero runtime method frame overhead.
Parameters
offset
the starting index in the byte array.
length
the number of bytes to validate.