Skip to content

Better documentation/code example for "clone" operation #330

@codekrolik2

Description

@codekrolik2

Would be great to see a reference implementation of doing something as typical with cloning as:

  1. Deserialize an existing object from a buffer using clone_as_root;
  2. Update a field in root object, or a field in child object or an array (add/remove elements);
  3. Assemble everything back together and serialize it back into a buffer.

While making sure we're not creating any garbage data in the buffer along the way.

Metadata

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