Package space.subkek.nodeledger
Class NodeLedgerTypeId
java.lang.Object
space.subkek.nodeledger.NodeLedgerTypeId
NODELEDGER built-in and custom type identifier support.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final longType id for boolean values.static final longType id for raw byte values.static final longType id for 64-bit floating point values.static final longType id for signed 32-bit integer values.static final longType id for signed 64-bit integer values.static final longType id for list values.static final longType id for nested nodes.static final longType id for null values.static final longType id for UTF-8 string values.static final longType id for unsigned 64-bit integer values. -
Method Summary
-
Field Details
-
NODE
public static final long NODEType id for nested nodes.- See Also:
-
NULL
public static final long NULLType id for null values. -
BOOL
public static final long BOOLType id for boolean values. -
I32
public static final long I32Type id for signed 32-bit integer values. -
I64
public static final long I64Type id for signed 64-bit integer values. -
U64
public static final long U64Type id for unsigned 64-bit integer values. -
F64
public static final long F64Type id for 64-bit floating point values. -
STR
public static final long STRType id for UTF-8 string values. -
BYTES
public static final long BYTESType id for raw byte values. -
LIST
public static final long LISTType id for list values.
-
-
Method Details
-
pack
Packs an ASCII type name into a NODELEDGER type id.- Parameters:
name- ASCII type name with at most eight bytes.- Returns:
- packed type id.
-
unpack
Unpacks a NODELEDGER type id into an ASCII type name.- Parameters:
typeId- packed type id.- Returns:
- unpacked type name.
-