Byte representation operations.
- Copyright:
-
- Crown Copyright 2016
- License:
-
- Apache-2.0
- Source:
Members
-
<static, constant> DELIM_OPTIONS
-
- Default Value:
-
- ["Space","Comma","Semi-colon","Colon","Line feed","CRLF"]
- Source:
-
<static, constant> HEX_DELIM_OPTIONS
-
- Default Value:
-
- ["Space","Comma","Semi-colon","Colon","Line feed","CRLF","0x","\\x","None"]
- Source:
-
<static, constant> BIN_DELIM_OPTIONS
-
- Default Value:
-
- ["Space","Comma","Semi-colon","Colon","Line feed","CRLF","None"]
- Source:
-
<static, constant> CHARCODE_BASE
-
- Default Value:
-
- 16
- Source:
-
<static, constant> HEX_CONTENT_CONVERT_WHICH
-
- Default Value:
-
- ["Only special chars","Only special chars including spaces","All chars"]
- Source:
-
<static, constant> HEX_CONTENT_SPACES_BETWEEN_BYTES
-
- Source:
Methods
-
<static> run_to_hex(input, args)
-
To Hex operation.
Parameters:
Name Type Description input
byte_array args
Array.<Object> - Source:
Returns:
- Type
- string
-
<static> run_from_hex(input, args)
-
From Hex operation.
Parameters:
Name Type Description input
string args
Array.<Object> - Source:
Returns:
- Type
- byte_array
-
<static> run_to_charcode(input, args)
-
To Charcode operation.
Parameters:
Name Type Description input
string args
Array.<Object> - Source:
Returns:
- Type
- string
-
<static> run_from_charcode(input, args)
-
From Charcode operation.
Parameters:
Name Type Description input
string args
Array.<Object> - Source:
Returns:
- Type
- byte_array
-
<static> highlight_to(pos, args)
-
Highlight to hex
Parameters:
Name Type Description pos
Array.<Object> pos[].start
number pos[].end
number args
Array.<Object> - Source:
Returns:
pos
- Type
- Array.<Object>
-
<static> highlight_from(pos, args)
-
Highlight to hex
Parameters:
Name Type Description pos
Array.<Object> pos[].start
number pos[].end
number args
Array.<Object> - Source:
Returns:
pos
- Type
- Array.<Object>
-
<static> run_to_decimal(input, args)
-
To Decimal operation.
Parameters:
Name Type Description input
byte_array args
Array.<Object> - Source:
Returns:
- Type
- string
-
<static> run_from_decimal(input, args)
-
From Decimal operation.
Parameters:
Name Type Description input
string args
Array.<Object> - Source:
Returns:
- Type
- byte_array
-
<static> run_to_binary(input, args)
-
To Binary operation.
Parameters:
Name Type Description input
byte_array args
Array.<Object> - Source:
Returns:
- Type
- string
-
<static> run_from_binary(input, args)
-
From Binary operation.
Parameters:
Name Type Description input
string args
Array.<Object> - Source:
Returns:
- Type
- byte_array
-
<static> highlight_to_binary(pos, args)
-
Highlight to binary
Parameters:
Name Type Description pos
Array.<Object> pos[].start
number pos[].end
number args
Array.<Object> - Source:
Returns:
pos
- Type
- Array.<Object>
-
<static> highlight_from_binary(pos, args)
-
Highlight from binary
Parameters:
Name Type Description pos
Array.<Object> pos[].start
number pos[].end
number args
Array.<Object> - Source:
Returns:
pos
- Type
- Array.<Object>
-
<static> run_to_hex_content(input, args)
-
To Hex Content operation.
Parameters:
Name Type Description input
byte_array args
Array.<Object> - Source:
Returns:
- Type
- string
-
<static> run_from_hex_content(input, args)
-
From Hex Content operation.
Parameters:
Name Type Description input
string args
Array.<Object> - Source:
Returns:
- Type
- byte_array