public class AmqpWritableBuffer extends Object implements org.apache.qpid.proton.codec.WritableBuffer
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_CAPACITY |
| Constructor and Description |
|---|
AmqpWritableBuffer()
Creates a new WritableBuffer with default capacity.
|
AmqpWritableBuffer(int capacity)
Create a new WritableBuffer with the given capacity.
|
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getArray() |
int |
getArrayLength() |
boolean |
hasRemaining() |
int |
limit() |
int |
position() |
void |
position(int position) |
void |
put(byte b) |
void |
put(byte[] src,
int offset,
int length) |
void |
put(ByteBuffer payload) |
void |
put(org.apache.qpid.proton.codec.ReadableBuffer src) |
void |
putDouble(double value) |
void |
putFloat(float value) |
void |
putInt(int value) |
void |
putLong(long value) |
void |
putShort(short value) |
int |
remaining() |
public static final int DEFAULT_CAPACITY
public AmqpWritableBuffer()
public AmqpWritableBuffer(int capacity)
public byte[] getArray()
public int getArrayLength()
public void put(byte b)
put in interface org.apache.qpid.proton.codec.WritableBufferpublic void putShort(short value)
putShort in interface org.apache.qpid.proton.codec.WritableBufferpublic void putInt(int value)
putInt in interface org.apache.qpid.proton.codec.WritableBufferpublic void putLong(long value)
putLong in interface org.apache.qpid.proton.codec.WritableBufferpublic void putFloat(float value)
putFloat in interface org.apache.qpid.proton.codec.WritableBufferpublic void putDouble(double value)
putDouble in interface org.apache.qpid.proton.codec.WritableBufferpublic void put(byte[] src, int offset, int length)
put in interface org.apache.qpid.proton.codec.WritableBufferpublic boolean hasRemaining()
hasRemaining in interface org.apache.qpid.proton.codec.WritableBufferpublic int remaining()
remaining in interface org.apache.qpid.proton.codec.WritableBufferpublic int position()
position in interface org.apache.qpid.proton.codec.WritableBufferpublic void position(int position)
position in interface org.apache.qpid.proton.codec.WritableBufferpublic void put(ByteBuffer payload)
put in interface org.apache.qpid.proton.codec.WritableBufferpublic int limit()
limit in interface org.apache.qpid.proton.codec.WritableBufferpublic void put(org.apache.qpid.proton.codec.ReadableBuffer src)
put in interface org.apache.qpid.proton.codec.WritableBufferCopyright © 2005–2021 The Apache Software Foundation. All rights reserved.