File: src/Scale/Array/U8Arr.sol
U8Arr
Kind: library
ABI Surface
Errors
error InvalidU8ArrLength()
Function Surface
function encode(uint8\[\] arr) internal pure returns (bytes)- Encodes an
uint8[]into SCALE format.
- Encodes an
function encodedSizeAt(bytes data, uint256 offset) internal pure returns (uint256)- Returns the number of bytes that a
uint8[]would occupy when SCALE-encoded.
- Returns the number of bytes that a
function decode(bytes data) internal pure returns (uint8\[\], uint256)- Decodes an
uint8[]from SCALE format.
- Decodes an
function decodeAt(bytes data, uint256 offset) internal pure returns (uint8\[\], uint256)- Decodes an
uint8[]from SCALE format at the specified offset.
- Decodes an