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,
Object parsed) |
CLOptionValue(String hexBytes,
CLOptionTypeInfo typeInfo,
Object parsed) |
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
fromString(String hex) |
CLType |
getCLType() |
CLTypeInfo |
getCLTypeInfo() |
static byte[] |
prefixOption(byte[] bytes) |
String |
toHex() |
static String |
toHex(byte[] bytes) |
public static final byte[] OPTION_NONE
public static final byte[] OPTION_SOME
public CLOptionValue(String hexBytes, CLOptionTypeInfo typeInfo, 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,
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(String hex)
public static String toHex(byte[] bytes)
public CLTypeInfo getCLTypeInfo()
public CLType getCLType()
public String toHex()
Copyright © 2021. All rights reserved.