public class NettyBufTargetBuffer extends Object implements PageReadTargetBuffer
Constructor and Description |
---|
NettyBufTargetBuffer(io.netty.buffer.ByteBuf target) |
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 NettyBufTargetBuffer(io.netty.buffer.ByteBuf target)
target
- target bufferpublic byte[] byteArray()
byteArray
in interface PageReadTargetBuffer
public ByteBuffer byteBuffer()
byteBuffer
in interface PageReadTargetBuffer
public long offset()
offset
in interface PageReadTargetBuffer
public WritableByteChannel byteChannel()
byteChannel
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
Copyright © 2023. All Rights Reserved.