private static interface ByteBufferArray.Visitor
Modifier and Type | Method and Description |
---|---|
void |
visit(ByteBuffer bb,
byte[] array,
int arrayOffset,
int len)
Visit the given byte buffer, if it is a read action, we will transfer the
bytes from the buffer to the destination array, else if it is a write
action, we will transfer the bytes from the source array to the buffer
|
void visit(ByteBuffer bb, byte[] array, int arrayOffset, int len)
bb
- byte bufferarray
- a source or destination byte arrayarrayOffset
- offset of the byte arraylen
- read/write lengthCopyright © 2007–2019 The Apache Software Foundation. All rights reserved.