public static final class FastByteOperations.UnsafeOperations extends java.lang.Object implements FastByteOperations.ByteOperations
Constructor and Description |
---|
UnsafeOperations() |
Modifier and Type | Method and Description |
---|---|
int |
compare(byte[] buffer1,
int offset1,
int length1,
byte[] buffer2,
int offset2,
int length2) |
int |
compare(java.nio.ByteBuffer buffer1,
byte[] buffer2,
int offset2,
int length2) |
int |
compare(java.nio.ByteBuffer buffer1,
java.nio.ByteBuffer buffer2) |
static int |
compareTo(java.nio.ByteBuffer buffer1,
java.nio.ByteBuffer buffer2) |
static int |
compareTo(java.lang.Object buffer1,
long offset1,
int length1,
java.nio.ByteBuffer buffer) |
static int |
compareTo(java.lang.Object buffer1,
long memoryOffset1,
int length1,
java.lang.Object buffer2,
long memoryOffset2,
int length2)
Lexicographically compare two arrays.
|
void |
copy(java.nio.ByteBuffer src,
int srcPosition,
byte[] trg,
int trgPosition,
int length) |
void |
copy(java.nio.ByteBuffer srcBuf,
int srcPosition,
java.nio.ByteBuffer trgBuf,
int trgPosition,
int length) |
static void |
copy(java.lang.Object src,
long srcOffset,
byte[] trg,
int trgPosition,
int length) |
static void |
copy(java.lang.Object src,
long srcOffset,
java.nio.ByteBuffer trgBuf,
int trgPosition,
int length) |
static void |
copy(java.lang.Object src,
long srcOffset,
java.lang.Object dst,
long dstOffset,
long length) |
public int compare(byte[] buffer1, int offset1, int length1, byte[] buffer2, int offset2, int length2)
compare
in interface FastByteOperations.ByteOperations
public int compare(java.nio.ByteBuffer buffer1, byte[] buffer2, int offset2, int length2)
compare
in interface FastByteOperations.ByteOperations
public int compare(java.nio.ByteBuffer buffer1, java.nio.ByteBuffer buffer2)
compare
in interface FastByteOperations.ByteOperations
public void copy(java.nio.ByteBuffer src, int srcPosition, byte[] trg, int trgPosition, int length)
copy
in interface FastByteOperations.ByteOperations
public void copy(java.nio.ByteBuffer srcBuf, int srcPosition, java.nio.ByteBuffer trgBuf, int trgPosition, int length)
copy
in interface FastByteOperations.ByteOperations
public static void copy(java.lang.Object src, long srcOffset, java.nio.ByteBuffer trgBuf, int trgPosition, int length)
public static void copy(java.lang.Object src, long srcOffset, byte[] trg, int trgPosition, int length)
public static void copy(java.lang.Object src, long srcOffset, java.lang.Object dst, long dstOffset, long length)
@Inline public static int compareTo(java.nio.ByteBuffer buffer1, java.nio.ByteBuffer buffer2)
@Inline public static int compareTo(java.lang.Object buffer1, long offset1, int length1, java.nio.ByteBuffer buffer)
@Inline public static int compareTo(java.lang.Object buffer1, long memoryOffset1, int length1, java.lang.Object buffer2, long memoryOffset2, int length2)
buffer1
- left operand: a byte[] or nullbuffer2
- right operand: a byte[] or nullmemoryOffset1
- Where to start comparing in the left buffer (pure memory address if buffer1 is null, or relative otherwise)memoryOffset2
- Where to start comparing in the right buffer (pure memory address if buffer1 is null, or relative otherwise)length1
- How much to compare from the left bufferlength2
- How much to compare from the right bufferCopyright © 2017 The Apache Software Foundation