Skip to content

Binary serialization over pipes #471

Closed
@pvdrz

Description

@pvdrz

This binary serialization over a pipe comes up in other places. perhaps a bit of abstraction could help with the buffer sizes and ser/de steps, e.g. Pipe<T: BinSerDe>, impl BinSerDef for i32 { const NUM_BYTES: usize = 4; /* .. */, Pipe::write(val: &T), Pipe::read() -> io::Result<T>, etc.

Originally posted by @japaric in #468 (comment)

Metadata

Metadata

Assignees

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