Enum Packer
- All Implemented Interfaces:
Serializable,Comparable<Packer>
Factory for packing implementations
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionpackers who fill the Least Significant Bit First int and byte packer have the same result on Big Endian architecturespackers who fill the Most Significant Bit first int and byte packer have the same result on Little Endian architectures -
Method Summary
Modifier and TypeMethodDescriptionabstract BytePackernewBytePacker(int width) abstract BytePackerForLongnewBytePackerForLong(int width) newBytePackerVector(int width) abstract IntPackernewIntPacker(int width) static PackerReturns the enum constant of this type with the specified name.static Packer[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
BIG_ENDIAN
packers who fill the Least Significant Bit First int and byte packer have the same result on Big Endian architectures -
LITTLE_ENDIAN
packers who fill the Most Significant Bit first int and byte packer have the same result on Little Endian architectures
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
newIntPacker
- Parameters:
width- the width in bits of the packed values- Returns:
- an int based packer
-
newBytePacker
- Parameters:
width- the width in bits of the packed values- Returns:
- a byte based packer
-
newBytePackerVector
-
newBytePackerForLong
- Parameters:
width- the width in bits of the packed values- Returns:
- a byte based packer for INT64
-