private static interface ByteBufferArray.Visitor
Modifier and Type | Method and Description |
---|---|
void |
visit(ByteBuffer bb,
int pos,
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, int pos, byte[] array, int arrayOffset, int len)
bb
- byte bufferpos
- Start position in ByteBufferarray
- a source or destination byte arrayarrayOffset
- offset of the byte arraylen
- read/write lengthCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.