Skip to content

EncodedChunks confusingly provide access to constructed ".data" -- despite the decoder making an internal copy. #80

Closed
@dalecurtis

Description

@dalecurtis

As folks are starting to play with the API, at least one person has hit a footgun where they modified the encoded chunk after sending it to the decoder. We should just copy before control returns to JS to avoid this.

Obviously this prevents a zero copy on encoded data path, but generally copying the input data isn't expensive.

Metadata

Metadata

Assignees

Labels

breakingInterface changes that would break current usage (producing errors or undesired behavior).

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions