CBORTesting
CBORTesting
Documentation for contract.
_state
bool _state
testDecodeCBORMapping
function testDecodeCBORMapping(bytes encoding) public view returns (bytes[2][] decodedData)
CBOR Decoding utilities
testDecodeCBORMappingGetValue
function testDecodeCBORMappingGetValue(bytes encoding, bytes key) public view returns (bytes value)
testDecodeCBORArrayGetIndex
function testDecodeCBORArrayGetIndex(bytes encoding, bytes key) public view returns (uint64 index)
testDecodeCBORArrayGetItem
function testDecodeCBORArrayGetItem(bytes encoding, uint64 index) public view returns (bytes value)
testDecodeCBORArray
function testDecodeCBORArray(bytes encoding) public view returns (bytes[] decodedData)
testDecodeCBORPrimitive
function testDecodeCBORPrimitive(bytes encoding) public view returns (bytes decodedData)
testBytesToNegativeInt128
function testBytesToNegativeInt128(bytes encoding) public view returns (int128)
ByteParser utilities
testBytesToUint64
function testBytesToUint64(bytes encoding) public view returns (uint64)
testBytesToString
function testBytesToString(bytes encoding) public view returns (string)
testBytesToBigNumber
function testBytesToBigNumber(bytes encoding) public view returns (uint256 value)
testBytesToBool
function testBytesToBool(bytes encoding) public view returns (bool state)
baselineStateChange
function baselineStateChange() public
Benchmark how expensive decoding is (with state changes) Call some state to measure how expensive our computations are
statefulTestDecodeCBORMapping
function statefulTestDecodeCBORMapping(bytes encoding) public
statefulTestDecodeCBORMappingGetValue
function statefulTestDecodeCBORMappingGetValue(bytes encoding, bytes key) public
statefulTestDecodeCBORArrayGetIndex
function statefulTestDecodeCBORArrayGetIndex(bytes encoding, bytes key) public
statefulTestDecodeCBORArrayGetItem
function statefulTestDecodeCBORArrayGetItem(bytes encoding, uint64 index) public
statefulTestDecodeCBORArray
function statefulTestDecodeCBORArray(bytes encoding) public
statefulTestDecodeCBORPrimitive
function statefulTestDecodeCBORPrimitive(bytes encoding) public