public class QpidByteBuffer extends Object
public final boolean isDirect()
public final short getUnsignedByte()
public final int getUnsignedShort()
public final int getUnsignedShort(int pos)
public final long getUnsignedInt()
public final QpidByteBuffer putUnsignedByte(short s)
public final QpidByteBuffer putUnsignedShort(int i)
public final QpidByteBuffer putUnsignedInt(long value)
public final void dispose()
public final InputStream asInputStream()
public final ByteBuffer asByteBuffer()
public final CharBuffer decode(Charset charset)
public final int read(ReadableByteChannel channel) throws IOException
IOExceptionpublic final SSLEngineResult decryptSSL(SSLEngine engine, QpidByteBuffer dest) throws SSLException
SSLExceptionpublic final boolean hasRemaining()
public QpidByteBuffer putInt(int index, int value)
public QpidByteBuffer putShort(int index, short value)
public QpidByteBuffer putChar(int index, char value)
public final QpidByteBuffer put(byte b)
public QpidByteBuffer put(int index, byte b)
public short getShort(int index)
public final QpidByteBuffer mark()
public final long getLong()
public QpidByteBuffer putFloat(int index, float value)
public double getDouble(int index)
public final boolean hasArray()
public final double getDouble()
public final QpidByteBuffer putFloat(float value)
public final QpidByteBuffer putInt(int value)
public byte[] array()
public final QpidByteBuffer putShort(short value)
public int getInt(int index)
public final int remaining()
public final QpidByteBuffer put(byte[] src)
public final QpidByteBuffer put(ByteBuffer src)
public final QpidByteBuffer put(QpidByteBuffer src)
public final QpidByteBuffer get(byte[] dst, int offset, int length)
public final QpidByteBuffer get(ByteBuffer dst)
public final void copyTo(ByteBuffer dst)
public final void putCopyOf(QpidByteBuffer source)
public QpidByteBuffer rewind()
public QpidByteBuffer clear()
public QpidByteBuffer putLong(int index, long value)
public QpidByteBuffer compact()
public final QpidByteBuffer putDouble(double value)
public int limit()
public QpidByteBuffer reset()
public QpidByteBuffer flip()
public final short getShort()
public final float getFloat()
public QpidByteBuffer limit(int newLimit)
public QpidByteBuffer duplicate()
public final QpidByteBuffer put(byte[] src, int offset, int length)
public long getLong(int index)
public int capacity()
public char getChar(int index)
public final byte get()
public byte get(int index)
public final QpidByteBuffer get(byte[] dst)
public final void copyTo(byte[] dst)
public final QpidByteBuffer putChar(char value)
public QpidByteBuffer position(int newPosition)
public int arrayOffset()
public final char getChar()
public final int getInt()
public final QpidByteBuffer putLong(long value)
public float getFloat(int index)
public QpidByteBuffer slice()
public QpidByteBuffer view(int offset, int length)
public int position()
public QpidByteBuffer putDouble(int index, double value)
public static QpidByteBuffer allocate(boolean direct, int size)
public static QpidByteBuffer allocate(int size)
public static QpidByteBuffer allocateDirect(int size)
public static Collection<QpidByteBuffer> allocateDirectCollection(int size)
public static Collection<QpidByteBuffer> asQpidByteBuffers(byte[] data)
public static Collection<QpidByteBuffer> asQpidByteBuffers(byte[] data, int offset, int length)
public static SSLEngineResult encryptSSL(SSLEngine engine, Collection<QpidByteBuffer> buffers, QpidByteBuffer dest) throws SSLException
SSLExceptionpublic static Collection<QpidByteBuffer> inflate(Collection<QpidByteBuffer> compressedBuffers) throws IOException
IOExceptionpublic static Collection<QpidByteBuffer> deflate(Collection<QpidByteBuffer> uncompressedBuffers) throws IOException
IOExceptionpublic static long write(GatheringByteChannel channel, Collection<QpidByteBuffer> qpidByteBuffers) throws IOException
IOExceptionpublic static QpidByteBuffer wrap(ByteBuffer wrap)
public static QpidByteBuffer wrap(byte[] data)
public static QpidByteBuffer wrap(byte[] data, int offset, int length)
public static void initialisePool(int bufferSize,
int maxPoolSize)
public static QpidByteBuffer getCachedThreadLocalBuffer()
public static int getPooledBufferSize()
public static long getAllocatedDirectMemorySize()
public static int getNumberOfActivePooledBuffers()
public static int getNumberOfPooledBuffers()
Copyright © 2006–2018 The Apache Software Foundation. All rights reserved.