-
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 MessageBufferBEslice(int offset, int length)shortgetShort(int index)intgetInt(int index)Read a big-endian int value at the specified index longgetLong(int index)floatgetFloat(int index)doublegetDouble(int index)voidputShort(int index, short v)voidputInt(int index, int v)Write a big-endian integer value to the memory voidputLong(int index, long v)voidputDouble(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
-
slice
MessageBufferBE slice(int offset, int length)
-
getShort
short getShort(int index)
-
getInt
int getInt(int index)
Read a big-endian int value at the specified index
-
getLong
long getLong(int index)
-
getFloat
float getFloat(int index)
-
getDouble
double getDouble(int 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)
-
-
-
-