public class ByteBuff extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
ByteBuff |
append(boolean v) |
ByteBuff |
append(byte b) |
ByteBuff |
append(byte[] b) |
ByteBuff |
append(byte[] b,
int begin,
int len) |
ByteBuff |
append(ByteBuff bb) |
ByteBuff |
append(int v) |
ByteBuff |
append(long v) |
ByteBuff |
append(short v) |
ByteBuff |
append(String str) |
ByteBuff |
append(String str,
String charset) |
byte[] |
array() |
void |
clear() |
private void |
copy(byte[] dest,
int destStart,
byte[] src,
int srcBegin,
int len) |
byte[] |
getBytes() |
int |
getUsed() |
int |
length() |
String |
toHexString() |
String |
toString() |
String |
toString(int size,
String encoding) |
String |
toString(String encoding) |
void |
ungzip()
ungzip
|
void |
update(int v,
int at) |
void |
update(long v,
int at) |
public int getUsed()
public int length()
public ByteBuff append(byte b)
public ByteBuff append(byte[] b)
public ByteBuff append(byte[] b, int begin, int len)
public ByteBuff append(short v)
public ByteBuff append(int v)
public void update(int v,
int at)
public ByteBuff append(long v)
public void update(long v,
int at)
public ByteBuff append(boolean v)
private final void copy(byte[] dest,
int destStart,
byte[] src,
int srcBegin,
int len)
public byte[] array()
public byte[] getBytes()
public String toString(String encoding) throws UnsupportedEncodingException
public String toHexString()
public String toString(int size, String encoding) throws UnsupportedEncodingException
public void ungzip()
throws IOException
IOExceptionpublic void clear()
Copyright © 2023. All rights reserved.