decodeCborSingle

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.

T
decodeCborSingle
(
T
Flag!"Flatten" flatten = No.Flatten
R
)
(
auto ref R input
)
if (
isInputRange!R &&
is(ElementType!R == ubyte)
)

Meta