snix/tvix/nix-compat/src
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
..
aterm feat(nix-compat/{aterm,derivation}): init parser 2023-10-16 12:23:00 +00:00
bin feat(tvix/nix-compat): add drvfmt 2023-11-07 11:27:08 +00:00
derivation refactor(tvix/nix-compat): check presence with btree_map's entry API 2023-11-05 20:28:37 +00:00
nar feat(nix-compat/nar/reader): provide passthrough buffered I/O 2023-11-19 09:53:10 +00:00
nixhash feat(nix-compat/nixbase32): use data_encoding::DecodeError 2023-11-10 19:05:36 +00:00
store_path fix(nix-compat/store_path): valid names ⊊ UTF-8 2023-11-19 09:53:10 +00:00
lib.rs feat(tvix/nix-compat): add narinfo parsing and serialisation 2023-10-27 16:08:06 +00:00
narinfo.rs feat(nix-compat/narinfo): turn flags into bitfields 2023-11-10 19:05:36 +00:00
nixbase32.rs feat(nix-compat/nixbase32): use data_encoding::DecodeError 2023-11-10 19:05:36 +00:00