decodeCborSingle

Decodes single cbor value and tries to convert it to requested type. If types doesn't match CborException is thrown. Note, that ubyte[] and string types are slices of input range if ubyte[] was provided. Will modify input range, popping all the elements of T.

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

Meta