Package 

Class MessageBufferBE


  • 
    public class MessageBufferBE
    extends MessageBuffer
                        

    MessageBufferBE is a MessageBuffer implementation tailored to big-endian machines. The specification of Message Pack demands writing short/int/float/long/double values in the big-endian format. In the big-endian machine, we do not need to swap the byte order.

    • Method Summary

      Modifier and Type Method Description
      MessageBufferBE slice(int offset, int length)
      short getShort(int index)
      int getInt(int index) Read a big-endian int value at the specified index
      long getLong(int index)
      float getFloat(int index)
      double getDouble(int index)
      void putShort(int index, short v)
      void putInt(int index, int v) Write a big-endian integer value to the memory
      void putLong(int index, long v)
      void putDouble(int index, double v)
      • Methods inherited from class com.batch.android.msgpack.core.buffer.MessageBuffer

        allocate, array, arrayOffset, copyTo, getBoolean, getByte, getBytes, getBytes, hasArray, putBoolean, putByte, putByteBuffer, putBytes, putFloat, putLong, putMessageBuffer, releaseBuffer, size, slice, sliceAsByteBuffer, sliceAsByteBuffer, toByteArray, toHexString, wrap, wrap, wrap
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getInt

         int getInt(int index)

        Read a big-endian int value at the specified index

      • putShort

         void putShort(int index, short v)
      • putInt

         void putInt(int index, int v)

        Write a big-endian integer value to the memory

      • putLong

         void putLong(int index, long v)
      • putDouble

         void putDouble(int index, double v)