public class FastByteOperations
extends java.lang.Object
UnsignedBytes
class to be able to compare arrays that start at non-zero offsets.Modifier and Type | Class and Description |
---|---|
static interface |
FastByteOperations.ByteOperations |
static class |
FastByteOperations.PureJavaOperations |
static class |
FastByteOperations.UnsafeOperations |
Constructor and Description |
---|
FastByteOperations() |
Modifier and Type | Method and Description |
---|---|
static int |
compareUnsigned(byte[] b1,
int s1,
int l1,
byte[] b2,
int s2,
int l2)
Lexicographically compare two byte arrays.
|
static int |
compareUnsigned(byte[] b1,
int s1,
int l1,
java.nio.ByteBuffer b2) |
static int |
compareUnsigned(java.nio.ByteBuffer b1,
byte[] b2,
int s2,
int l2) |
static int |
compareUnsigned(java.nio.ByteBuffer b1,
java.nio.ByteBuffer b2) |
static void |
copy(java.nio.ByteBuffer src,
int srcPosition,
byte[] trg,
int trgPosition,
int length) |
static void |
copy(java.nio.ByteBuffer src,
int srcPosition,
java.nio.ByteBuffer trg,
int trgPosition,
int length) |
public static int compareUnsigned(byte[] b1, int s1, int l1, byte[] b2, int s2, int l2)
public static int compareUnsigned(java.nio.ByteBuffer b1, byte[] b2, int s2, int l2)
public static int compareUnsigned(byte[] b1, int s1, int l1, java.nio.ByteBuffer b2)
public static int compareUnsigned(java.nio.ByteBuffer b1, java.nio.ByteBuffer b2)
public static void copy(java.nio.ByteBuffer src, int srcPosition, byte[] trg, int trgPosition, int length)
public static void copy(java.nio.ByteBuffer src, int srcPosition, java.nio.ByteBuffer trg, int trgPosition, int length)
Copyright © 2018 The Apache Software Foundation