SerializationHelper
Summary
Is a big Number negative.
Negate a big number.
Convert an unsigned decimal number as string to a big number.
Convert an signed decimal number as string to a big number.
Convert big number to an unsigned decimal number.
Convert big number to an signed decimal number.
Convert base64 with fc prefix to byte array.
Convert ascii char to symbol value.
Convert snake case string to pascal case.
Convert pascal case string to snake case.
Serialize object to byte array.
Encode byte array to hexadecimal string.
Decode hexadecimal string to byte array.
Serialize object to hexadecimal encoded string.
Combina multiple arrays into one.
Convert DateTime to time_point
(miliseconds since epoch)
Convert time_point
(miliseconds since epoch) to DateTime.
Convert DateTime to time_point_sec
(seconds since epoch)
Convert time_point_sec
(seconds since epoch) to DateTime.
Convert DateTime to block_timestamp_type
(half-seconds since a different epoch)
Convert block_timestamp_type
(half-seconds since a different epoch) to DateTime.
Convert Name into unsigned long.
Convert Name into bytes.
It takes a string of hexadecimal digits and reverses the order of the bytes.
Convert uint64_t into EOSIO name.
Members
Is a big Number negative.
Parameters
bin
big number in byte array
Returns
Negate a big number.
Parameters
bin
big number in byte array
Convert an unsigned decimal number as string to a big number.
Parameters
size
Size in bytes of the big numbers
decimal encoded as string
Returns
Convert an signed decimal number as string to a big number.
Parameters
size
Size in bytes of the big numbers
decimal encoded as string
Returns
Convert big number to an unsigned decimal number.
Parameters
bin
big number as byte arrayminDigits
0-pad result to this many digits
Returns
Convert big number to an signed decimal number.
Parameters
bin
big number as byte arrayminDigits
0-pad result to this many digits
Returns
Convert base64 with fc prefix to byte array.
Parameters
s
string to convert
Returns
Convert ascii char to symbol value.
Parameters
c
Returns
Convert snake case string to pascal case.
Parameters
s
string to convert
Returns
Convert pascal case string to snake case.
Parameters
s
string to convert
Returns
Serialize object to byte array.
Parameters
obj
object to serialize
Returns
Encode byte array to hexadecimal string.
Parameters
ba
byte array to convert
Returns
Decode hexadecimal string to byte array.
Parameters
hex
Returns
Serialize object to hexadecimal encoded string.
Parameters
obj
Returns
Combina multiple arrays into one.
Parameters
arrays
Returns
Convert DateTime to time_point
(miliseconds since epoch)
Parameters
value
date to convert
Returns
Convert time_point
(miliseconds since epoch) to DateTime.
Parameters
ticks
time_point ticks to convert
Returns
Convert DateTime to time_point_sec
(seconds since epoch)
Parameters
value
date to convert
Returns
Convert time_point_sec
(seconds since epoch) to DateTime.
Parameters
secs
time_point_sec to convert
Returns
Convert DateTime to block_timestamp_type
(half-seconds since a different epoch)
Parameters
value
date to convert
Returns
Convert block_timestamp_type
(half-seconds since a different epoch) to DateTime.
Parameters
slot
block_timestamp slot to convert
Returns
Convert Name into unsigned long.
Parameters
name
Returns
Converted value
Convert Name into bytes.
Parameters
name
Returns
Converted value bytes
It takes a string of hexadecimal digits and reverses the order of the bytes.
Parameters
h
The hex string to reverse.
Returns
The hex value is being reversed.
Convert uint64_t into EOSIO name.
Parameters
binary
Returns
EOSIO Name
Last updated