public abstract class AbstractBytesBuilder<T extends AbstractBytesBuilder> extends Object
| 构造器和说明 |
|---|
AbstractBytesBuilder(Endianness endianness,
Charset charset) |
| 限定符和类型 | 方法和说明 |
|---|---|
T |
append(byte[] buf) |
T |
append(byte[] buf,
int off,
int len) |
T |
appendByte(byte b) |
T |
appendByte(int b) |
T |
appendCRC(CRC.Algorithm algorithm) |
T |
appendCRC(CRC.Algorithm algorithm,
Endianness endianness) |
T |
appendCRC(CRC.Algorithm algorithm,
int off,
int len) |
T |
appendCRC(CRC.Algorithm algorithm,
int off,
int len,
Endianness endianness) |
T |
appendDouble(double d) |
T |
appendFloat(float f) |
T |
appendInt(int i) |
protected T |
appendInt64(long l,
int wide) |
T |
appendLong(long l) |
T |
appendShort(int word) |
T |
appendShort(short word) |
T |
appendString(String s) |
T |
appendString(String s,
Charset charset) |
T |
appendString(String s,
String charsetName) |
protected abstract T |
getThis() |
byte[] |
toByteArray() |
public AbstractBytesBuilder(Endianness endianness, Charset charset)
protected T appendInt64(long l, int wide)
public T appendByte(byte b)
public T appendByte(int b)
public T append(byte[] buf)
public T append(byte[] buf, int off, int len)
public T appendShort(short word)
public T appendShort(int word)
public T appendInt(int i)
public T appendLong(long l)
public T appendFloat(float f)
public T appendDouble(double d)
public T appendCRC(CRC.Algorithm algorithm)
public T appendCRC(CRC.Algorithm algorithm, int off, int len)
public T appendCRC(CRC.Algorithm algorithm, Endianness endianness)
public T appendCRC(CRC.Algorithm algorithm, int off, int len, Endianness endianness)
protected abstract T getThis()
public byte[] toByteArray()
Copyright © 2021. All rights reserved.