CBOR
CBOR
CBORBuffer
struct CBORBuffer {
struct Buffer.buffer buf;
uint256 depth;
}
MAJOR_TYPE_INT
uint8 MAJOR_TYPE_INT
MAJOR_TYPE_NEGATIVE_INT
uint8 MAJOR_TYPE_NEGATIVE_INT
MAJOR_TYPE_BYTES
uint8 MAJOR_TYPE_BYTES
MAJOR_TYPE_STRING
uint8 MAJOR_TYPE_STRING
MAJOR_TYPE_ARRAY
uint8 MAJOR_TYPE_ARRAY
MAJOR_TYPE_MAP
uint8 MAJOR_TYPE_MAP
MAJOR_TYPE_TAG
uint8 MAJOR_TYPE_TAG
MAJOR_TYPE_CONTENT_FREE
uint8 MAJOR_TYPE_CONTENT_FREE
TAG_TYPE_BIGNUM
uint8 TAG_TYPE_BIGNUM
TAG_TYPE_NEGATIVE_BIGNUM
uint8 TAG_TYPE_NEGATIVE_BIGNUM
CBOR_FALSE
uint8 CBOR_FALSE
CBOR_TRUE
uint8 CBOR_TRUE
CBOR_NULL
uint8 CBOR_NULL
CBOR_UNDEFINED
uint8 CBOR_UNDEFINED
create
function create(uint256 capacity) internal pure returns (struct CBOR.CBORBuffer cbor)
data
function data(struct CBOR.CBORBuffer buf) internal pure returns (bytes)
writeUInt256
function writeUInt256(struct CBOR.CBORBuffer buf, uint256 value) internal pure
writeInt256
function writeInt256(struct CBOR.CBORBuffer buf, int256 value) internal pure
writeUInt64
function writeUInt64(struct CBOR.CBORBuffer buf, uint64 value) internal pure
writeInt64
function writeInt64(struct CBOR.CBORBuffer buf, int64 value) internal pure
writeBytes
function writeBytes(struct CBOR.CBORBuffer buf, bytes value) internal pure
writeString
function writeString(struct CBOR.CBORBuffer buf, string value) internal pure
writeBool
function writeBool(struct CBOR.CBORBuffer buf, bool value) internal pure
writeNull
function writeNull(struct CBOR.CBORBuffer buf) internal pure
writeUndefined
function writeUndefined(struct CBOR.CBORBuffer buf) internal pure
startArray
function startArray(struct CBOR.CBORBuffer buf) internal pure
startFixedArray
function startFixedArray(struct CBOR.CBORBuffer buf, uint64 length) internal pure
startMap
function startMap(struct CBOR.CBORBuffer buf) internal pure
startFixedMap
function startFixedMap(struct CBOR.CBORBuffer buf, uint64 length) internal pure
endSequence
function endSequence(struct CBOR.CBORBuffer buf) internal pure
writeKVString
function writeKVString(struct CBOR.CBORBuffer buf, string key, string value) internal pure
writeKVBytes
function writeKVBytes(struct CBOR.CBORBuffer buf, string key, bytes value) internal pure
writeKVUInt256
function writeKVUInt256(struct CBOR.CBORBuffer buf, string key, uint256 value) internal pure
writeKVInt256
function writeKVInt256(struct CBOR.CBORBuffer buf, string key, int256 value) internal pure
writeKVUInt64
function writeKVUInt64(struct CBOR.CBORBuffer buf, string key, uint64 value) internal pure
writeKVInt64
function writeKVInt64(struct CBOR.CBORBuffer buf, string key, int64 value) internal pure
writeKVBool
function writeKVBool(struct CBOR.CBORBuffer buf, string key, bool value) internal pure
writeKVNull
function writeKVNull(struct CBOR.CBORBuffer buf, string key) internal pure
writeKVUndefined
function writeKVUndefined(struct CBOR.CBORBuffer buf, string key) internal pure
writeKVMap
function writeKVMap(struct CBOR.CBORBuffer buf, string key) internal pure
writeKVArray
function writeKVArray(struct CBOR.CBORBuffer buf, string key) internal pure
writeFixedNumeric
function writeFixedNumeric(struct CBOR.CBORBuffer buf, uint8 major, uint64 value) private pure
writeIndefiniteLengthType
function writeIndefiniteLengthType(struct CBOR.CBORBuffer buf, uint8 major) private pure
writeDefiniteLengthType
function writeDefiniteLengthType(struct CBOR.CBORBuffer buf, uint8 major, uint64 length) private pure
writeContentFree
function writeContentFree(struct CBOR.CBORBuffer buf, uint8 value) private pure