[]
        
(Showing Draft Content)

CSJ2K.j2k.entropy.decoder.ByteInputBuffer.-ctor

ByteInputBuffer Constructor

ByteInputBuffer(byte[])

Creates a new byte array input stream that reads data from the specified byte array. The byte array is not copied.

Declaration
public ByteInputBuffer(byte[] buf)
Parameters
Type Name Description
byte[] buf

the input buffer.

ByteInputBuffer(byte[], int, int)

Creates a new byte array input stream that reads data from the specified byte array. Up to length characters are to be read from the byte array, starting at the indicated offset.

       <p>The byte array is not copied.</p>
Declaration
public ByteInputBuffer(byte[] buf, int offset, int length)
Parameters
Type Name Description
byte[] buf

the input buffer.

int offset

the offset in the buffer of the first byte to read.

int length

the maximum number of bytes to read from the buffer.