
public class OByteBufferUtils extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
SIZE_OF_INT |
static int |
SIZE_OF_LONG |
static int |
SIZE_OF_SHORT |
| Constructor and Description |
|---|
OByteBufferUtils() |
| Modifier and Type | Method and Description |
|---|---|
static int |
mergeIntFromBuffers(ByteBuffer buffer,
ByteBuffer buffer1)
Merge int value from two byte buffer.
|
static long |
mergeLongFromBuffers(ByteBuffer buffer,
ByteBuffer buffer1)
Merge long value from two byte buffer.
|
static short |
mergeShortFromBuffers(ByteBuffer buffer,
ByteBuffer buffer1)
Merge short value from two byte buffer.
|
static void |
splitIntToBuffers(ByteBuffer buffer,
ByteBuffer buffer1,
int iValue)
Split int value into two byte buffer.
|
static void |
splitLongToBuffers(ByteBuffer buffer,
ByteBuffer buffer1,
long iValue)
Split long value into two byte buffer.
|
static void |
splitShortToBuffers(ByteBuffer buffer,
ByteBuffer buffer1,
short iValue)
Split short value into two byte buffer.
|
public static final int SIZE_OF_SHORT
public static final int SIZE_OF_INT
public static final int SIZE_OF_LONG
public static short mergeShortFromBuffers(ByteBuffer buffer, ByteBuffer buffer1)
buffer - to read first part of valuebuffer1 - to read second part of valuepublic static int mergeIntFromBuffers(ByteBuffer buffer, ByteBuffer buffer1)
buffer.remaining() valuebuffer - to read first part of valuebuffer1 - to read second part of valuepublic static long mergeLongFromBuffers(ByteBuffer buffer, ByteBuffer buffer1)
buffer.remaining() valuebuffer - to read first part of valuebuffer1 - to read second part of valuepublic static void splitShortToBuffers(ByteBuffer buffer, ByteBuffer buffer1, short iValue)
buffer - to write first part of valuebuffer1 - to write second part of valuepublic static void splitIntToBuffers(ByteBuffer buffer, ByteBuffer buffer1, int iValue)
buffer.remaining() valuebuffer - to write first part of valuebuffer1 - to write second part of valuepublic static void splitLongToBuffers(ByteBuffer buffer, ByteBuffer buffer1, long iValue)
buffer.remaining() valuebuffer - to write first part of valuebuffer1 - to write second part of valueCopyright © 2009–2025 OrientDB. All rights reserved.