Use `parseDataStructure` instead. This is for internal usage.
Please take care when using `dataEnd`! This value is ONLY set if the data
structure uses an indefinite amount of items, optimizing the efficiency when
doing an initial scan to allocate arrays. If the value is not 0, the value
can be relied on.
Returns the number of items (not pairs) in a data structure.
Name
Type
Description
encoding
bytes
the dynamic bytes array to scan
cursor
uint256
position where mapping starts (in bytes)
majorType
enum CBORSpec.MajorType
the corresponding major type identifier
shortCount
uint256
short data identifier included in field info
Name
Type
Description
totalItems
uint256
the number of total items in the data structure
dataStart
uint256
the position where the values for the structure begin.
dataEnd
uint256
the position where the values for the structure end.
Use `parseDataStructure` instead. This is for internal usage.
Please take care when using `dataEnd`! This value is ONLY set if the data
structure uses an indefinite amount of items, optimizing the efficiency when
doing an initial scan to allocate arrays. If the value is not 0, the value
can be relied on.
Returns the number of items (not pairs) in a data structure.
Name
Type
Description
encoding
bytes
the dynamic bytes array to scan
cursor
uint256
position where mapping starts (in bytes)
majorType
enum CBORSpec.MajorType
the corresponding major type identifier
shortCount
uint256
short data identifier included in field info
Name
Type
Description
totalItems
uint256
the number of total items in the data structure
dataStart
uint256
the position where the values for the structure begin.
dataEnd
uint256
the position where the values for the structure end.