public class GrowableByteBuffer extends Object
| Modifier and Type | Method and Description |
|---|---|
static GrowableByteBuffer |
allocate(int capacity)
Allocates a new growable practically unlimited sized buffer.
|
static GrowableByteBuffer |
allocate(int capacity,
int sizelimit)
Allocates a new growable but limited sized buffer.
|
int |
capacity() |
Buffer |
clear() |
void |
ensureObjectFit(int objectSize)
Ensures additional object of size objectSize can be added to the buffer
|
Buffer |
flip() |
byte |
get() |
ByteBuffer |
get(byte[] dst) |
ByteBuffer |
get(byte[] dst,
int offset,
int length) |
int |
limit() |
int |
position() |
ByteBuffer |
put(byte b) |
ByteBuffer |
put(byte[] src) |
ByteBuffer |
put(byte[] buffer,
int i,
int param_sz) |
public static GrowableByteBuffer allocate(int capacity)
capacity - public static GrowableByteBuffer allocate(int capacity, int sizelimit)
capacity - sizelimit - public int limit()
public Buffer flip()
public ByteBuffer get(byte[] dst, int offset, int length)
public int capacity()
public int position()
public Buffer clear()
public ByteBuffer put(byte b)
public ByteBuffer put(byte[] buffer, int i, int param_sz)
public ByteBuffer get(byte[] dst)
public byte get()
public ByteBuffer put(byte[] src)
public void ensureObjectFit(int objectSize)
throws BufferOverflowException
objectSize - BufferOverflowExceptionCopyright 2004-2021 Solace Corporation. All rights reserved.