public abstract class BytePackerForLong extends Object
| Modifier and Type | Method and Description |
|---|---|
int |
getBitWidth() |
abstract void |
pack32Values(long[] input,
int inPos,
byte[] output,
int outPos)
pack 32 values from input at inPos into bitWidth * 4 bytes in output at outPos.
|
abstract void |
pack8Values(long[] input,
int inPos,
byte[] output,
int outPos)
pack 8 values from input at inPos into bitWidth bytes in output at outPos.
|
abstract void |
unpack32Values(byte[] input,
int inPos,
long[] output,
int outPos)
unpack bitWidth * 4 bytes from input at inPos into 32 values in output at outPos.
|
abstract void |
unpack32Values(ByteBuffer input,
int inPos,
long[] output,
int outPos)
unpack bitWidth * 4 bytes from input at inPos into 32 values in output at outPos.
|
abstract void |
unpack8Values(byte[] input,
int inPos,
long[] output,
int outPos)
unpack bitWidth bytes from input at inPos into 8 values in output at outPos.
|
abstract void |
unpack8Values(ByteBuffer input,
int inPos,
long[] output,
int outPos)
unpack bitWidth bytes from input at inPos into 8 values in output at outPos.
|
public final int getBitWidth()
public abstract void pack8Values(long[] input,
int inPos,
byte[] output,
int outPos)
input - the input valuesinPos - where to read from in inputoutput - the output bytesoutPos - where to write to in outputpublic abstract void pack32Values(long[] input,
int inPos,
byte[] output,
int outPos)
input - the input valuesinPos - where to read from in inputoutput - the output bytesoutPos - where to write to in outputpublic abstract void unpack8Values(ByteBuffer input, int inPos, long[] output, int outPos)
input - the input bytesinPos - where to read from in inputoutput - the output valuesoutPos - where to write to in outputpublic abstract void unpack32Values(ByteBuffer input, int inPos, long[] output, int outPos)
input - the input bytesinPos - where to read from in inputoutput - the output valuesoutPos - where to write to in outputpublic abstract void unpack8Values(byte[] input,
int inPos,
long[] output,
int outPos)
input - the input bytesinPos - where to read from in inputoutput - the output valuesoutPos - where to write to in outputpublic abstract void unpack32Values(byte[] input,
int inPos,
long[] output,
int outPos)
input - the input bytesinPos - where to read from in inputoutput - the output valuesoutPos - where to write to in outputCopyright © 2018 The Apache Software Foundation. All rights reserved.