zerocopy

go zerocopy.Reader interface and implementation

OTHER License

Stars
14
Committers
1

zerocopy

A zero-copy Reader interface, which returns a byte slice pointing at the underlying memory rather than copying it to you.

Documentation

Zero copy streams of *bytes.Reader and *os.File.

These are inherently unsafe since we violate the laws of the language to obtain access to the underlying byte slice of the *bytes.Reader.

It's all in good fun, though?

Caveat Emptor.