public class OUnsafeBinaryConverter extends Object implements OBinaryConverter
Modifier and Type | Field and Description |
---|---|
static OUnsafeBinaryConverter |
INSTANCE |
Constructor and Description |
---|
OUnsafeBinaryConverter() |
Modifier and Type | Method and Description |
---|---|
char |
getChar(byte[] buffer,
int index,
ByteOrder byteOrder) |
int |
getInt(byte[] buffer,
int pointer,
ByteOrder byteOrder) |
long |
getLong(byte[] buffer,
int index,
ByteOrder byteOrder) |
short |
getShort(byte[] buffer,
int index,
ByteOrder byteOrder) |
boolean |
nativeAccelerationUsed() |
void |
putChar(byte[] buffer,
int index,
char character,
ByteOrder byteOrder) |
void |
putInt(byte[] buffer,
int pointer,
int value,
ByteOrder byteOrder) |
void |
putLong(byte[] buffer,
int index,
long value,
ByteOrder byteOrder) |
void |
putShort(byte[] buffer,
int index,
short value,
ByteOrder byteOrder) |
public static final OUnsafeBinaryConverter INSTANCE
public void putShort(byte[] buffer, int index, short value, ByteOrder byteOrder)
putShort
in interface OBinaryConverter
public short getShort(byte[] buffer, int index, ByteOrder byteOrder)
getShort
in interface OBinaryConverter
public void putInt(byte[] buffer, int pointer, int value, ByteOrder byteOrder)
putInt
in interface OBinaryConverter
public int getInt(byte[] buffer, int pointer, ByteOrder byteOrder)
getInt
in interface OBinaryConverter
public void putLong(byte[] buffer, int index, long value, ByteOrder byteOrder)
putLong
in interface OBinaryConverter
public long getLong(byte[] buffer, int index, ByteOrder byteOrder)
getLong
in interface OBinaryConverter
public void putChar(byte[] buffer, int index, char character, ByteOrder byteOrder)
putChar
in interface OBinaryConverter
public char getChar(byte[] buffer, int index, ByteOrder byteOrder)
getChar
in interface OBinaryConverter
public boolean nativeAccelerationUsed()
nativeAccelerationUsed
in interface OBinaryConverter
Copyright © 2009–2020 OrientDB. All rights reserved.