Module table_key.move
Function: encode_u64
This function returns big-endian encoding of a u64
value.
Inputs
Full prototype: public fun encode_u64(key: u64): vector<u8>
key: u64
Validation: None.
Impact: The key to encode to a vector of bytes and reverse.
Function: decode_u64
This function returns the u64
value of a big-endian--encoded vector of bytes.
Inputs
Full prototype: public fun decode_u64(key_bytes: vector<u8>): u64
key_bytes: vector<u8>
Validation: None.
Impact: The vector of bytes to reverse and decode to a
u64
value.
Function: encode_u128
This function returns big-endian encoding of a u128
value.
Inputs
Full prototype: public fun encode_u128(key: u128): vector<u8>
key: u128
Validation: None.
Impact: The key to encode to a vector of bytes and reverse.
Function: decode_u128
This function returns the u128
value of a big-endian--encoded vector of bytes.
Inputs
Full prototype: public fun decode_u128(key_bytes: vector<u8>): u128
key_bytes: vector<u8>
Validation: None.
Impact: The vector of bytes to reverse and decode to a
u128
value.
Function: encode_u256
This function returns big-endian encoding of a u256
value.
Inputs
Full prototype: public fun encode_u256(key: u256): vector<u8>
key: u256
Validation: None.
Impact: The key to encode to a vector of bytes and reverse.
Function: decode_u256
This function returns the u256
value of a big-endian--encoded vector of bytes.
Inputs
Full prototype: public fun decode_u256(key_bytes: vector<u8>): u256
key_bytes: vector<u8>
Validation: None.
Impact: The vector of bytes to reverse and decode to a
u256
value.