[]
Sets the underlying buffer byte array to the given one, with the given offset and length. If 'buf' is null then the current byte buffer is assumed. If 'offset' is negative, then it will be assumed to be 'off+len', where 'off' and 'len' are the offset and length of the current byte buffer.
<p>The byte array is not copied.</p>
public virtual void setByteArray(byte[] buf, int offset, int length)
Type | Name | Description |
---|---|---|
byte[] | buf | the input buffer. If null it is the current input buffer. |
int | offset | the offset in the buffer of the first byte to read. If negative it is assumed to be the byte just after the end of the current input buffer, only permitted if 'buf' is null. |
int | length | the maximum number of bytes to read frmo the buffer. |