File: src/Scale/Bytes/Bytes.sol
Bytes
Kind: library
ABI Surface
Errors
error InvalidBytesLength()
Function Surface
function encode(bytes value) internal pure returns (bytes)- Encodes an
bytesinto SCALE format.
- Encodes an
function encodedSizeAt(bytes data, uint256 offset) internal pure returns (uint256)- Returns the number of bytes that a
byteswould occupy when SCALE-encoded.
- Returns the number of bytes that a
function decode(bytes data) internal pure returns (bytes, uint256)- Decodes SCALE-encoded bytes into an
bytes.
- Decodes SCALE-encoded bytes into an
function decodeAt(bytes data, uint256 offset) internal pure returns (bytes, uint256)- Decodes an
bytesfrom SCALE format at the specified offset.
- Decodes an