public class LinkBuffer extends Object
| Modifier and Type | Field and Description |
|---|---|
int |
allocSize |
static int |
DEFAULT_BUFFER_SIZE |
| Constructor and Description |
|---|
LinkBuffer() |
LinkBuffer(int allocSize) |
| Modifier and Type | Method and Description |
|---|---|
List<ByteBuffer> |
finish() |
List<ByteBuffer> |
getBuffers() |
long |
size() |
LinkBuffer |
writeByte(byte value) |
LinkBuffer |
writeByteArray(byte[] value) |
LinkBuffer |
writeByteArray(byte[] value,
int offset,
int length) |
LinkBuffer |
writeByteBuffer(ByteBuffer buf) |
LinkBuffer |
writeDouble(double value) |
LinkBuffer |
writeFloat(float value) |
LinkBuffer |
writeInt16(int value) |
LinkBuffer |
writeInt16LE(int value) |
LinkBuffer |
writeInt32(int value) |
LinkBuffer |
writeInt32LE(int value) |
LinkBuffer |
writeInt64(long value) |
LinkBuffer |
writeInt64LE(long value) |
LinkBuffer |
writeVarInt32(int value) |
LinkBuffer |
writeVarInt64(long value) |
public static final int DEFAULT_BUFFER_SIZE
public final int allocSize
public long size()
public List<ByteBuffer> getBuffers()
public List<ByteBuffer> finish()
public LinkBuffer writeByte(byte value) throws IOException
IOExceptionpublic LinkBuffer writeInt16(int value) throws IOException
IOExceptionpublic LinkBuffer writeInt16LE(int value) throws IOException
IOExceptionpublic LinkBuffer writeInt32(int value) throws IOException
IOExceptionpublic LinkBuffer writeInt32LE(int value) throws IOException
IOExceptionpublic LinkBuffer writeInt64(long value) throws IOException
IOExceptionpublic LinkBuffer writeInt64LE(long value) throws IOException
IOExceptionpublic LinkBuffer writeVarInt32(int value) throws IOException
IOExceptionpublic LinkBuffer writeVarInt64(long value) throws IOException
IOExceptionpublic LinkBuffer writeDouble(double value) throws IOException
IOExceptionpublic LinkBuffer writeFloat(float value) throws IOException
IOExceptionpublic LinkBuffer writeByteArray(byte[] value, int offset, int length) throws IOException
IOExceptionpublic LinkBuffer writeByteArray(byte[] value) throws IOException
IOExceptionpublic LinkBuffer writeByteBuffer(ByteBuffer buf)
Copyright © 2009–2022. All rights reserved.