Static
VariableThe length of a contracts variable (considering Hex notation)
Get a hexadecimal data block of arbitrary length at given position/index
The index of variable (starting at 0)
Optional
length: numberThe length of the data block (must be a multiple of 2)
The data as hexadecimal string (in little endianness)
Helper class for contracts
A contract owns additional data, which is split in 8 byte blocks. The content is encoded in hexadecimal representation and big endianness. This class facilitates access to these data. The term "index" is used to address these 8 byte blocks
Example
A contract may have the following data
Then it can be split into five data sections each 8 bytes (16 chars in hex) and indexed like shown
Example: Usage