Package io.kubfly.sdk.codec.cbor
package io.kubfly.sdk.codec.cbor
-
ClassDescriptionCBOR written with the
CborGeneratorinto a buffer of its own that grows, in the deterministic form of RFC 8949 (4.2.1) whole: an array or a map is opened and closed without its count known in advance — its head, in the fewest bytes, goes before its items when it closes — and the pairs of a map are put into the order of the bytes of their keys, a key repeated failing.WhatCborParser.next()read.The CBOR generator (RFC 8949): every data item written straight into abyte[]at an offset, the offset after it returned — nothing left for the collector of garbage, asJsonGenerator; anullbuffer writes nothing and counts the bytes.A streaming parser of CBOR (RFC 8949), strict and without a tree, asJsonParseris of JSON:CborParser.next()reads item by item (CborEvent).