CalldataReaderLib

Authors: Aera https://github.com/aera-finance, philogy https://github.com/philogy

Modified version of the original CalldataReaderLib

No functions were changed, only added new functions

Functions

from

function from(bytes calldata data) internal pure returns (CalldataReader reader);

requireAtEndOf

function requireAtEndOf(CalldataReader self, bytes calldata data) internal pure;

requireAtEndOf

function requireAtEndOf(CalldataReader self, CalldataReader end) internal pure;

offset

function offset(CalldataReader self) internal pure returns (uint256);

readBool

function readBool(CalldataReader self) internal pure returns (CalldataReader, bool value);

readU8

readU16

readU32

readI24

readU40

readU64

readU128

readAddr

readU256

readU24End

readBytes

readU208

ADDED BY AERA

readOptionalU256

readBytes32Array

readBytesEnd

readBytesEnd

readBytesToMemory

readBytesToMemory

Errors

ReaderNotAtEnd

Last updated