Skip to content

Safe Zero-Copy Buffer from bytes::Bytes #4254

@tustvold

Description

@tustvold

Is your feature request related to a problem or challenge? Please describe what you are trying to do.

The Rust ecosystem makes extensive use of bytes::Bytes to represent a shared slice of data. Providing safe zero-copy interoperability with this type will therefore allow applications to avoid unnecessary copying of potentially large IPC payloads

Describe the solution you'd like

Provide a From<bytes::Bytes> implementation for Buffer

Describe alternatives you've considered

Additional context

Metadata

Metadata

Assignees

Labels

enhancementAny new improvement worthy of a entry in the changelog

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions