public class BlockByteBuffer extends Object
| Constructor and Description |
|---|
BlockByteBuffer(int segmentAddressBits,
int blockCount,
int blockAddressBits,
boolean direct)
Creates a new
BlockByteBuffer where each buffer segment will be
1 << segmentAddressBits (max of 30), and a total size of (1 << blockAddressBits)*blockCount. |
| Modifier and Type | Method and Description |
|---|---|
static ByteBuffer |
allocate(int size,
boolean direct) |
BlockByteBuffer |
duplicate() |
ByteBuffer[] |
getBuffers() |
ByteBuffer |
getByteBuffer(int block)
Return a buffer positioned at the given start byte.
|
public BlockByteBuffer(int segmentAddressBits,
int blockCount,
int blockAddressBits,
boolean direct)
BlockByteBuffer where each buffer segment will be
1 << segmentAddressBits (max of 30), and a total size of (1 << blockAddressBits)*blockCount.segmentAddressBits - blockCount - blockAddressBits - direct - public ByteBuffer[] getBuffers()
public static ByteBuffer allocate(int size, boolean direct)
public BlockByteBuffer duplicate()
public ByteBuffer getByteBuffer(int block)
block - Copyright © 2020. All rights reserved.