decodeCbor

Decodes single value and returns it as CborValue tagged union type. Throws CborException if data is not well-formed. Note, that ubyte[] and string types are slices of input range if ubyte[] was provided. Will modify input range, popping all the bytes of the first item.

decodeCbor
(
R
)
(
auto ref R input
)
if (
isInputRange!R &&
is(ElementType!R == ubyte)
)

Meta