Skip to content

Add copy node function#23

Open
HeadHunter483 wants to merge 5 commits intoozontech:masterfrom
HeadHunter483:22-add-node-copy-func
Open

Add copy node function#23
HeadHunter483 wants to merge 5 commits intoozontech:masterfrom
HeadHunter483:22-add-node-copy-func

Conversation

@HeadHunter483
Copy link

This pull requests adds (*Node).CopyFromNode(*Root, *Node) function. The function copies the data from one node to another. If the src node has related nodes (e.g., next, nodes) they are copied as well to a matching fields of dst node. The first parameter of the function must be dst node's root so it utilizes its decoder node pool to avoid problems with GC.

Fixes #22

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feature: add function to deep copy a node from one decoder to a node from another

3 participants