ComponentOne PDF for .NET
CSJ2K.j2k.entropy.decoder Namespace / ByteInputBuffer Class / setByteArray Method
the input buffer. If null it is the current input buffer.
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.
the maximum number of bytes to read frmo the buffer.

In This Topic
    setByteArray Method (ByteInputBuffer)
    In This Topic
    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.

    The byte array is not copied.

    Syntax
    'Declaration
     
    
    Public Overridable Sub setByteArray( _
       ByVal buf() As Byte, _
       ByVal offset As Integer, _
       ByVal length As Integer _
    ) 
    public virtual void setByteArray( 
       byte[] buf,
       int offset,
       int length
    )

    Parameters

    buf
    the input buffer. If null it is the current input buffer.
    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.
    length
    the maximum number of bytes to read frmo the buffer.
    See Also