Package 

Class MessageBufferU


  • 
    public class MessageBufferU
    extends MessageBuffer
                        

    Universal MessageBuffer implementation supporting Java6 and Android. This buffer always uses ByteBuffer-based memory access

    • Method Summary

      Modifier and Type Method Description
      MessageBufferU slice(int offset, int length)
      byte getByte(int index)
      boolean getBoolean(int index)
      short getShort(int index)
      int getInt(int index) Read a big-endian int value at the specified index
      float getFloat(int index)
      long getLong(int index)
      double getDouble(int index)
      void getBytes(int index, int len, ByteBuffer dst)
      void putByte(int index, byte v)
      void putBoolean(int index, boolean v)
      void putShort(int index, short v)
      void putInt(int index, int v) Write a big-endian integer value to the memory
      void putFloat(int index, float v)
      void putLong(int index, long l)
      void putDouble(int index, double v)
      ByteBuffer sliceAsByteBuffer(int index, int length) Create a ByteBuffer view of the range [index, index+length) of this memory
      ByteBuffer sliceAsByteBuffer() Get a ByteBuffer view of this buffer
      void getBytes(int index, Array<byte> dst, int dstOffset, int length)
      void putByteBuffer(int index, ByteBuffer src, int len)
      void putBytes(int index, Array<byte> src, int srcOffset, int length)
      void copyTo(int index, MessageBuffer dst, int offset, int length) Copy this buffer contents to another MessageBuffer
      void putMessageBuffer(int index, MessageBuffer src, int srcOffset, int len)
      Array<byte> toByteArray() Get a copy of this buffer
      boolean hasArray()
      Array<byte> array()
      • Methods inherited from class com.batch.android.msgpack.core.buffer.MessageBuffer

        allocate, arrayOffset, releaseBuffer, size, slice, toHexString, wrap, wrap, wrap
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait