Skip to content

[Question] Is it possible to dynamically add elements in between CBOR encoded data #185

Closed
@dhrishi

Description

I want to CBOR encode this data: {"a": [1, 3], "b": [2, 4]}

The thing is, I get the data 1, 2, 3, 4 in sequence from some other source. Using the TinyCBOR APIs, is it possible to create two independent CBOR encoded arrays:
=> [1], [2]
=> [1, 3], [2, 4]

and once they are complete, insert/append them together to get the entire CBOR encoded data for above? If yes, can you please provide a sample example?

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions