Skip to content

Draft: Wrap memz 32k byte buffers in a struct

Hordur Freyr Yngvason requested to merge wrap-memz-buffers-in-struct into master

I had this idea the whole discussion of #178 (closed), but I should have just written an MR to demonstrate.

It's a minor change, the idea is that the user no longer has to remember to slice buf[:n] after reading n bytes into a reusable []byte slice buf.

Merge request reports