public class WriteByteBuffer extends Object implements WriteBuffer
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_CAPACITY |
static int |
MAX_BUFFER_CAPACITY |
Constructor and Description |
---|
WriteByteBuffer() |
WriteByteBuffer(int capacity) |
Modifier and Type | Method and Description |
---|---|
int |
getPosition() |
StaticBuffer |
getStaticBuffer() |
StaticBuffer |
getStaticBufferFlipBytes(int from,
int to) |
WriteBuffer |
putBoolean(boolean val) |
WriteBuffer |
putByte(byte val) |
WriteBuffer |
putBytes(byte[] val) |
WriteBuffer |
putBytes(StaticBuffer val) |
WriteBuffer |
putChar(char val) |
WriteBuffer |
putDouble(double val) |
WriteBuffer |
putFloat(float val) |
WriteBuffer |
putInt(int val) |
WriteBuffer |
putLong(long val) |
WriteBuffer |
putShort(short val) |
public static final int DEFAULT_CAPACITY
public static final int MAX_BUFFER_CAPACITY
public WriteByteBuffer()
public WriteByteBuffer(int capacity)
public WriteBuffer putLong(long val)
putLong
in interface WriteBuffer
public WriteBuffer putInt(int val)
putInt
in interface WriteBuffer
public WriteBuffer putShort(short val)
putShort
in interface WriteBuffer
public WriteBuffer putBoolean(boolean val)
putBoolean
in interface WriteBuffer
public WriteBuffer putByte(byte val)
putByte
in interface WriteBuffer
public WriteBuffer putBytes(byte[] val)
putBytes
in interface WriteBuffer
public WriteBuffer putBytes(StaticBuffer val)
putBytes
in interface WriteBuffer
public WriteBuffer putChar(char val)
putChar
in interface WriteBuffer
public WriteBuffer putFloat(float val)
putFloat
in interface WriteBuffer
public WriteBuffer putDouble(double val)
putDouble
in interface WriteBuffer
public int getPosition()
getPosition
in interface WriteBuffer
public StaticBuffer getStaticBuffer()
getStaticBuffer
in interface WriteBuffer
public StaticBuffer getStaticBufferFlipBytes(int from, int to)
getStaticBufferFlipBytes
in interface WriteBuffer
Copyright © 2012–2024. All rights reserved.