Package org.xerial.snappy
Class BitShuffleNative
java.lang.Object
org.xerial.snappy.BitShuffleNative
JNI interfaces of the
BitShuffle
implementation. The native method in this class is
defined in BitShuffleNative.h (genereted by javah) and BitShuffleNative.cpp
DO NOT USE THIS CLASS since the direct use of this class might break the
native library code loading in SnappyLoader
.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
shuffle
(Object input, int inputOffset, int typeSize, int byteLength, Object output, int outputOffset) int
shuffleDirectBuffer
(ByteBuffer input, int inputOffset, int typeSize, int byteLength, ByteBuffer output, int outputOffset) int
unshuffle
(Object input, int inputOffset, int typeSize, int byteLength, Object output, int outputOffset) int
unshuffleDirectBuffer
(ByteBuffer input, int inputOffset, int typeSize, int byteLength, ByteBuffer output, int outputOffset)
-
Constructor Details
-
BitShuffleNative
public BitShuffleNative()
-
-
Method Details
-
shuffle
public int shuffle(Object input, int inputOffset, int typeSize, int byteLength, Object output, int outputOffset) throws IOException - Throws:
IOException
-
shuffleDirectBuffer
public int shuffleDirectBuffer(ByteBuffer input, int inputOffset, int typeSize, int byteLength, ByteBuffer output, int outputOffset) throws IOException - Throws:
IOException
-
unshuffle
public int unshuffle(Object input, int inputOffset, int typeSize, int byteLength, Object output, int outputOffset) throws IOException - Throws:
IOException
-
unshuffleDirectBuffer
public int unshuffleDirectBuffer(ByteBuffer input, int inputOffset, int typeSize, int byteLength, ByteBuffer output, int outputOffset) throws IOException - Throws:
IOException
-