public class BinaryType extends Object
Modifier and Type | Field and Description |
---|---|
static byte |
BOOL |
static byte |
BYTE |
static byte |
DOUBLE |
static byte |
I16 |
static byte |
I32 |
static byte |
I64 |
static byte |
LIST |
static byte |
MAP |
static byte |
SET |
static byte |
STOP |
static byte |
STRING |
static byte |
STRUCT |
static byte |
VOID |
Modifier and Type | Method and Description |
---|---|
static String |
asString(byte id)
Readable string value for a type ID.
|
static byte |
forType(PType type)
Get the binary type for the given value type.
|
public static final byte STOP
public static final byte VOID
public static final byte BOOL
public static final byte BYTE
public static final byte DOUBLE
public static final byte I16
public static final byte I32
public static final byte I64
public static final byte STRING
public static final byte STRUCT
public static final byte MAP
public static final byte SET
public static final byte LIST
public static byte forType(@Nonnull PType type)
type
- The type to check.public static String asString(byte id)
id
- The type ID.Copyright © 2015–2017 morimekta.net. All rights reserved.