public class PackratInteger extends PackratDatatype
EMPTY_TYPE_ARRAY, sizeParamDATATYPE_ARRAY, DATATYPE_ASSOC, DATATYPE_BLOB, DATATYPE_FLAG_COLLECTION, DATATYPE_FLAG_FIXED, DATATYPE_FLAG_STRUCT, DATATYPE_FLAG_VARIABLE, DATATYPE_FLOAT, DATATYPE_INT, DATATYPE_LIST, DATATYPE_STRING, DATATYPE_STRUCT, DATATYPE_UINT| Constructor and Description |
|---|
PackratInteger() |
PackratInteger(int sizeParam,
boolean signed) |
PackratInteger(java.lang.String name,
int sizeParam,
boolean signed) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
bytesToObject(ByteBuffer input)
Convert the given bytes to an appropriate object representation.
|
int |
getTypeCode()
Return a single-byte code for the type.
|
java.lang.String |
getTypeDescription()
Return a String description of the data type (e.g.
|
boolean |
isFixedSize()
If true, datatype requires a fixed number of bytes.
|
void |
objectToBytes(java.lang.Object input,
ByteBuffer output)
Convert the given object to its binary representation.
|
appendAllTypes, getFixedSizeAmount, getFullDescription, getName, getSizeParam, getSubtypes, objectToByteArray, objectToByteBuffer, objectToBytes, readSize, setName, setSizeParam, toString, writeSize, writeSizepublic PackratInteger()
public PackratInteger(int sizeParam,
boolean signed)
public PackratInteger(java.lang.String name,
int sizeParam,
boolean signed)
public int getTypeCode()
PackratDatatypegetTypeCode in class PackratDatatypepublic java.lang.String getTypeDescription()
PackratDatatypegetTypeDescription in class PackratDatatypepublic boolean isFixedSize()
PackratDatatypeisFixedSize in class PackratDatatypepublic void objectToBytes(java.lang.Object input,
ByteBuffer output)
PackratDatatypeobjectToBytes in class PackratDatatypepublic java.lang.Object bytesToObject(ByteBuffer input)
PackratDatatypebytesToObject in class PackratDatatype