Skip to content
solidity
import "solidity-scale-codec/src/Scale/Bytes/Bytes16.sol";

Bytes16

Kind: library

Functions

encode(bytes16 value)

solidity
function encode(bytes16 value) internal pure returns (bytes)

Encodes an `bytes16` into SCALE format.

encodedSizeAt(bytes data, uint256 offset)

solidity
function encodedSizeAt(bytes data, uint256 offset) internal pure returns (uint256)

Returns the number of bytes that a `bytes16` would occupy when SCALE-encoded.

decode(bytes data)

solidity
function decode(bytes data) internal pure returns (bytes16)

Decodes SCALE-encoded bytes into an `bytes16`.

decodeAt(bytes data, uint256 offset)

solidity
function decodeAt(bytes data, uint256 offset) internal pure returns (bytes16)

Decodes an `bytes16` from SCALE format at the specified offset.