Skip to main content

CBOREncoding

CBOREncoding​

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

encodeFixedNumeric​

function encodeFixedNumeric(struct Buffer.buffer buf, uint8 major, uint64 value) private view

encodeIndefiniteLengthType​

function encodeIndefiniteLengthType(struct Buffer.buffer buf, uint8 major) private view

encodeUInt​

function encodeUInt(struct Buffer.buffer buf, uint256 value) internal view

encodeInt​

function encodeInt(struct Buffer.buffer buf, int256 value) internal view

encodeBytes​

function encodeBytes(struct Buffer.buffer buf, bytes value) internal view

encodeBigNum​

function encodeBigNum(struct Buffer.buffer buf, uint256 value) internal view

encodeSignedBigNum​

function encodeSignedBigNum(struct Buffer.buffer buf, int256 input) internal view

encodeString​

function encodeString(struct Buffer.buffer buf, string value) internal view

startArray​

function startArray(struct Buffer.buffer buf) internal view

startMap​

function startMap(struct Buffer.buffer buf) internal view

endSequence​

function endSequence(struct Buffer.buffer buf) internal view