snix/tvix/nix-compat/src/nar
edef a11abc02e2 feat(nix-compat/nar/reader): provide passthrough buffered I/O
Allow taking advantage of the buffer of the underlying reader to avoid
unnecessary copies of file data.

We can't easily implement the methods of BufRead directly, since we
have some extra I/O to perform in the final consume() invocation.

That could be resolved at the cost of additional bookkeeping, but this
will suffice for now.

Change-Id: I8100cf0abd79e7469670b8596bd989be5db44a91
Reviewed-on: https://cl.tvl.fyi/c/depot/+/10089
Reviewed-by: flokli <flokli@flokli.de>
Tested-by: BuildkiteCI
2023-11-19 09:53:10 +00:00
..
reader feat(nix-compat/nar/reader): provide passthrough buffered I/O 2023-11-19 09:53:10 +00:00
tests feat(tvix/nix-compat/nar/reader): add tests 2023-10-18 12:31:57 +00:00
wire fix(tvix/nix-compat/nar/wire): correct Node::Some doc comment 2023-10-18 12:22:47 +00:00
writer fix(nix-compat/nar/writer): use ByteSlice closer to call site 2023-10-27 17:07:06 +00:00
mod.rs feat(tvix/nix-compat): NAR reader 2023-10-18 11:40:06 +00:00