@InterfaceAudience.Private public class ReadWriteBuffer extends Object
| Constructor and Description | 
|---|
| ReadWriteBuffer() | 
| ReadWriteBuffer(byte[] bytes) | 
| ReadWriteBuffer(int length) | 
| Modifier and Type | Method and Description | 
|---|---|
| byte[] | getBuff() | 
| int | getReadPoint() | 
| int | getWritePoint() | 
| byte[] | readBytes() | 
| int | readInt() | 
| long | readLong() | 
| 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(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(String str)
public String readString()
Copyright © 2008–2023 Apache Software Foundation. All rights reserved.