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 () As Byte, _
ByVal As Integer, _
ByVal As Integer _
)
public virtual void setByteArray(
byte[] ,
int ,
int
)
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