public class ByteArrayTargetBuffer extends Object implements PageReadTargetBuffer
Constructor and Description |
---|
ByteArrayTargetBuffer(byte[] target,
int offset)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
byte[] |
byteArray() |
ByteBuffer |
byteBuffer() |
WritableByteChannel |
byteChannel() |
long |
offset() |
int |
readFromFile(RandomAccessFile file,
int length) |
long |
remaining() |
void |
writeBytes(byte[] srcArray,
int srcOffset,
int length) |
public ByteArrayTargetBuffer(byte[] target, int offset)
target
- offset
- public byte[] byteArray()
byteArray
in interface PageReadTargetBuffer
public ByteBuffer byteBuffer()
byteBuffer
in interface PageReadTargetBuffer
public long offset()
offset
in interface PageReadTargetBuffer
public long remaining()
remaining
in interface PageReadTargetBuffer
public void writeBytes(byte[] srcArray, int srcOffset, int length)
writeBytes
in interface PageReadTargetBuffer
public int readFromFile(RandomAccessFile file, int length) throws IOException
readFromFile
in interface PageReadTargetBuffer
IOException
public WritableByteChannel byteChannel()
byteChannel
in interface PageReadTargetBuffer
Copyright © 2023. All Rights Reserved.