encodeCbor

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.

size_t
encodeCbor
(
Flag!"Flatten" flatten = No.Flatten
R
E
)
(
auto ref R sink
,
auto ref const E value
)
if (
isOutputRange!(R, ubyte)
)

Meta