[]
        
(Showing Draft Content)

CSJ2K.j2k.entropy.decoder.ByteInputBuffer.setByteArray

setByteArray Method

setByteArray(byte[], int, int)

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>
Declaration
public virtual void setByteArray(byte[] buf, int offset, int length)
Parameters
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.