Package org.apache.cassandra.utils
Class FastByteOperations.PureJavaOperations
- java.lang.Object
-
- org.apache.cassandra.utils.FastByteOperations.PureJavaOperations
-
- All Implemented Interfaces:
FastByteOperations.ByteOperations
- Enclosing class:
- FastByteOperations
public static final class FastByteOperations.PureJavaOperations extends java.lang.Object implements FastByteOperations.ByteOperations
-
-
Constructor Summary
Constructors Constructor Description PureJavaOperations()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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, int position1, int length1, byte[] buffer2, int offset2, int length2)
int
compare(java.nio.ByteBuffer buffer1, java.nio.ByteBuffer buffer2)
void
copy(byte[] src, int srcPosition, byte[] trg, int trgPosition, int length)
void
copy(byte[] src, int srcPosition, java.nio.ByteBuffer trg, int trgPosition, int length)
void
copy(java.nio.ByteBuffer src, int srcPosition, byte[] trg, int trgPosition, int length)
void
copy(java.nio.ByteBuffer src, int srcPosition, java.nio.ByteBuffer trg, int trgPosition, int length)
-
-
-
Method Detail
-
compare
public int compare(byte[] buffer1, int offset1, int length1, byte[] buffer2, int offset2, int length2)
- Specified by:
compare
in interfaceFastByteOperations.ByteOperations
-
compare
public int compare(java.nio.ByteBuffer buffer1, int position1, int length1, byte[] buffer2, int offset2, int length2)
- Specified by:
compare
in interfaceFastByteOperations.ByteOperations
-
compare
public int compare(java.nio.ByteBuffer buffer1, byte[] buffer2, int offset2, int length2)
- Specified by:
compare
in interfaceFastByteOperations.ByteOperations
-
compare
public int compare(java.nio.ByteBuffer buffer1, java.nio.ByteBuffer buffer2)
- Specified by:
compare
in interfaceFastByteOperations.ByteOperations
-
copy
public void copy(byte[] src, int srcPosition, byte[] trg, int trgPosition, int length)
- Specified by:
copy
in interfaceFastByteOperations.ByteOperations
-
copy
public void copy(java.nio.ByteBuffer src, int srcPosition, byte[] trg, int trgPosition, int length)
- Specified by:
copy
in interfaceFastByteOperations.ByteOperations
-
copy
public void copy(byte[] src, int srcPosition, java.nio.ByteBuffer trg, int trgPosition, int length)
- Specified by:
copy
in interfaceFastByteOperations.ByteOperations
-
copy
public void copy(java.nio.ByteBuffer src, int srcPosition, java.nio.ByteBuffer trg, int trgPosition, int length)
- Specified by:
copy
in interfaceFastByteOperations.ByteOperations
-
-