- array
- the byte array which the new buffer will be based on.
- start
- the start index, must not be negative and not greater than array.length.
- byteCount
- the length, must not be negative and not greater than array.length - start.
Documentation for this section has not yet been entered.
Type Reason Java.Lang.IndexOutOfBoundsException if either start or byteCount is invalid.
Creates a new byte buffer by wrapping the given byte array.
The new buffer's position will be start, limit will be start + byteCount, capacity will be the length of the array.