public class BytezBufferWrapper
extends java.lang.Object
implements org.reveno.atp.core.api.channel.Buffer
| Constructor and Description |
|---|
BytezBufferWrapper() |
| Modifier and Type | Method and Description |
|---|---|
long |
capacity() |
void |
clear() |
org.nustaq.offheap.bytez.Bytez |
getBytez() |
boolean |
isAvailable() |
int |
length() |
int |
limit() |
void |
limitNext(int count) |
void |
markReader() |
void |
markSize() |
void |
markWriter() |
byte |
readByte() |
void |
readBytes(byte[] data,
int offset,
int length) |
byte[] |
readBytes(int length) |
int |
readerPosition() |
int |
readInt() |
long |
readLong() |
short |
readShort() |
void |
release() |
int |
remaining() |
void |
resetNextLimit() |
void |
resetReader() |
void |
resetWriter() |
void |
setBytez(org.nustaq.offheap.bytez.Bytez bytez,
long off,
int len) |
void |
setReaderPosition(int position) |
void |
setWriterPosition(int position) |
int |
sizeMarkPosition() |
void |
writeByte(byte b) |
void |
writeBytes(byte[] bytes) |
void |
writeBytes(byte[] buffer,
int offset,
int count) |
void |
writeFromBuffer(java.nio.ByteBuffer buffer) |
void |
writeInt(int value) |
void |
writeLong(long value) |
int |
writerPosition() |
void |
writeShort(short s) |
void |
writeSize() |
java.nio.ByteBuffer |
writeToBuffer() |
public int readerPosition()
readerPosition in interface org.reveno.atp.core.api.channel.Bufferpublic int writerPosition()
writerPosition in interface org.reveno.atp.core.api.channel.Bufferpublic int limit()
limit in interface org.reveno.atp.core.api.channel.Bufferpublic long capacity()
capacity in interface org.reveno.atp.core.api.channel.Bufferpublic int length()
length in interface org.reveno.atp.core.api.channel.Bufferpublic int remaining()
remaining in interface org.reveno.atp.core.api.channel.Bufferpublic void clear()
clear in interface org.reveno.atp.core.api.channel.Bufferpublic void release()
release in interface org.reveno.atp.core.api.channel.Bufferpublic boolean isAvailable()
isAvailable in interface org.reveno.atp.core.api.channel.Bufferpublic void setReaderPosition(int position)
setReaderPosition in interface org.reveno.atp.core.api.channel.Bufferpublic void setWriterPosition(int position)
setWriterPosition in interface org.reveno.atp.core.api.channel.Bufferpublic void writeByte(byte b)
writeByte in interface org.reveno.atp.core.api.channel.Bufferpublic void writeBytes(byte[] bytes)
writeBytes in interface org.reveno.atp.core.api.channel.Bufferpublic void writeBytes(byte[] buffer,
int offset,
int count)
writeBytes in interface org.reveno.atp.core.api.channel.Bufferpublic void writeLong(long value)
writeLong in interface org.reveno.atp.core.api.channel.Bufferpublic void writeInt(int value)
writeInt in interface org.reveno.atp.core.api.channel.Bufferpublic void writeShort(short s)
writeShort in interface org.reveno.atp.core.api.channel.Bufferpublic void writeFromBuffer(java.nio.ByteBuffer buffer)
writeFromBuffer in interface org.reveno.atp.core.api.channel.Bufferpublic java.nio.ByteBuffer writeToBuffer()
writeToBuffer in interface org.reveno.atp.core.api.channel.Bufferpublic byte readByte()
readByte in interface org.reveno.atp.core.api.channel.Bufferpublic byte[] readBytes(int length)
readBytes in interface org.reveno.atp.core.api.channel.Bufferpublic void readBytes(byte[] data,
int offset,
int length)
readBytes in interface org.reveno.atp.core.api.channel.Bufferpublic long readLong()
readLong in interface org.reveno.atp.core.api.channel.Bufferpublic int readInt()
readInt in interface org.reveno.atp.core.api.channel.Bufferpublic short readShort()
readShort in interface org.reveno.atp.core.api.channel.Bufferpublic void markReader()
markReader in interface org.reveno.atp.core.api.channel.Bufferpublic void markWriter()
markWriter in interface org.reveno.atp.core.api.channel.Bufferpublic void resetReader()
resetReader in interface org.reveno.atp.core.api.channel.Bufferpublic void resetWriter()
resetWriter in interface org.reveno.atp.core.api.channel.Bufferpublic void limitNext(int count)
limitNext in interface org.reveno.atp.core.api.channel.Bufferpublic void resetNextLimit()
resetNextLimit in interface org.reveno.atp.core.api.channel.Bufferpublic void markSize()
markSize in interface org.reveno.atp.core.api.channel.Bufferpublic int sizeMarkPosition()
sizeMarkPosition in interface org.reveno.atp.core.api.channel.Bufferpublic void writeSize()
writeSize in interface org.reveno.atp.core.api.channel.Bufferpublic org.nustaq.offheap.bytez.Bytez getBytez()
public void setBytez(org.nustaq.offheap.bytez.Bytez bytez,
long off,
int len)
Copyright © 2015 Artem Dmitriev. All Rights Reserved.