public class CLOptionValue extends CLValue
| Modifier and Type | Field and Description |
|---|---|
static byte[] |
OPTION_NONE
Option value prefix when no value is present for inner type
|
static byte[] |
OPTION_SOME
Option value prefix when value is present for inner type
|
| Constructor and Description |
|---|
CLOptionValue(byte[] bytes,
CLOptionTypeInfo typeInfo,
java.lang.Object parsed) |
CLOptionValue(java.lang.String hexBytes,
CLOptionTypeInfo typeInfo,
java.lang.Object parsed) |
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
fromString(java.lang.String hex) |
CLType |
getCLType() |
CLTypeInfo |
getCLTypeInfo() |
static byte[] |
prefixOption(byte[] bytes) |
java.lang.String |
toHex() |
static java.lang.String |
toHex(byte[] bytes) |
public static final byte[] OPTION_NONE
public static final byte[] OPTION_SOME
public CLOptionValue(java.lang.String hexBytes,
CLOptionTypeInfo typeInfo,
java.lang.Object parsed)
hexBytes - the option bytes with the 1st byte being OPTION_NONE or OPTION_SOMEtypeInfo - the type informationparsed - the parsed valuepublic CLOptionValue(byte[] bytes,
CLOptionTypeInfo typeInfo,
java.lang.Object parsed)
bytes - the option bytes with the 1st byte being OPTION_NONE or OPTION_SOMEtypeInfo - the type informationparsed - the parsed valuepublic static byte[] prefixOption(byte[] bytes)
public static byte[] fromString(java.lang.String hex)
public static java.lang.String toHex(byte[] bytes)
public CLTypeInfo getCLTypeInfo()
public CLType getCLType()
public java.lang.String toHex()