Skip to content

[Feature]: Add clone to buffer fields #1

@jonbarrow

Description

@jonbarrow

Checked Existing

  • I have checked the repository for duplicate issues.

What feature do you want to see added?

Add the clone option to buffer fields

Why do you want to have this feature?

Feature parity with binary-parser

Any other details to share? (OPTIONAL)

Right now all buffer fields are clones. The docs for clone however are:

clone - (Optional, defaults to false) By default, buffer(name [,options]) returns a new buffer which references the same memory as the parser input, but offset and cropped by a certain range. If this option is true, input buffer will be cloned and a new buffer referencing a new memory region is returned.

Metadata

Metadata

Assignees

No one assigned

    Labels

    awaiting-approvalTopic has not been approved or deniedfeatureA feature request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions