encodeCborMap

Encodes structs and classes as cbor map. Note, that decoding of structs and classes from maps is not supported (yet).

  1. size_t encodeCborMap(auto ref R sink, E value)
  2. size_t encodeCborMap(auto ref R sink, A aggregate)
    size_t
    encodeCborMap
    (
    Flag!"Flatten" flatten = Flag!"Flatten".no
    R
    A
    )
    (
    auto ref R sink
    ,
    )
    if (
    isOutputRange!(R, ubyte) &&
    (
    is(A == struct) ||
    is(A == class)
    )
    &&
    !isTuple!A
    )

Meta