@Private
public class ReadWriteBuffer
extends java.lang.Object
| Constructor | Description |
|---|---|
ReadWriteBuffer() |
|
ReadWriteBuffer(byte[] bytes) |
|
ReadWriteBuffer(int length) |
| Modifier and Type | Method | Description |
|---|---|---|
byte[] |
getBuff() |
|
int |
getReadPoint() |
|
int |
getWritePoint() |
|
byte[] |
readBytes() |
|
int |
readInt() |
|
long |
readLong() |
|
java.lang.String |
readString() |
|
void |
reset(byte[] newBuff) |
|
void |
setReadPoint(int pos) |
|
void |
setWritePoint(int pos) |
|
void |
writeBytes(byte[] b,
int off,
int len) |
|
void |
writeInt(int v) |
|
void |
writeLong(long v) |
|
void |
writeString(java.lang.String str) |
public ReadWriteBuffer(int length)
public ReadWriteBuffer()
public ReadWriteBuffer(byte[] bytes)
public void reset(byte[] newBuff)
public void setReadPoint(int pos)
public void setWritePoint(int pos)
public byte[] getBuff()
public int getWritePoint()
public int getReadPoint()
public void writeInt(int v)
public void writeLong(long v)
public void writeBytes(byte[] b,
int off,
int len)
public int readInt()
public long readLong()
public byte[] readBytes()
public void writeString(java.lang.String str)
public java.lang.String readString()
Copyright © 2008–2025 Apache Software Foundation. All rights reserved.