Variables marked with this attribute wont be (de)serialized.
Decodes single cbor value and tries to convert it to requested type. If types don't match CborException is thrown. Note, that ubyte[] and string types are slices of input range if ubyte[] was provided. Will consume input range, decoding all the elements of T.
Decodes single cbor value and tries to convert it to requested type. If types don't match CborException is thrown. Note, that this version will dup all array slices for you. Will consume input range, decoding all the elements of T.
Encodes value E into output range sink. Returns number of bytes written to sink. If flatten flag is yes then static arrays and structs will be encoded in place without headers.
Encodes classes and structs. If withFieldName is yes, than value is encoded as map. If withFieldName is no, then value is encoded as an array. If flatten flag is yes then static arrays and structs will be encoded in place without headers.
Encodes array of any items or a tuple as cbor array.
Encodes structs and classes as cbor array.
Encodes boolean.
Encodes break. Use after all items of indefinite-length sequence were encoded.
Encodes range of ubytes.
Writes range of ubyte to the sink. Needs to go after a call to encodeCborBytesHeader. The length of supplied range must be equal to one provided to encodeCborBytesHeader.
Encodes floating.
Encodes integer.
Encodes asociative array as cbor map.
Encodes structs and classes as cbor map. Note, that decoding of structs and classes from maps is not supported (yet).
Encodes null.
Encodes simple. Simple data type is essentially a number that has special meaning. Value must lie in range [0..23] or [32..255].
Encodes string.
Encodes undefined.
Outputs textual representation of cbor stream into sink or stdout if not provided.
Returns a number of aggregate members that will be encoded by cbor-d.