diff options
author | Aspen Smith <root@gws.fyi> | 2024-02-23T19·42-0500 |
---|---|---|
committer | aspen <root@gws.fyi> | 2024-03-11T11·35+0000 |
commit | 54609e8c17e60c1a3feaea5430887a6cc6bdce0f (patch) | |
tree | 1ab4cad26f28e4656b0b461b8edce886e1b486d0 /tvix/glue/src/tests/blob.tar.xz | |
parent | de727bccf99a1dcce2bb335e56af02f80e462dbc (diff) |
feat(tvix/glue): Add AsyncRead wrapper to decompress streams r/7679
Add a new AsyncRead wrapper, DecompressedReader, that wraps an underlying AsyncRead, but sniffs the magic bytes at the start of the stream to determine which compression format is being used out of the three that are supported by builtins.fetchTarball, and switches to the correct decompression algorithm adapter dynamically. This will be used in the implementation of builtins.fetchTarball Change-Id: I892a4683d5c93e67d4c173f3d21199bdc6605922 Reviewed-on: https://cl.tvl.fyi/c/depot/+/11019 Reviewed-by: flokli <flokli@flokli.de> Tested-by: BuildkiteCI
Diffstat (limited to 'tvix/glue/src/tests/blob.tar.xz')
-rw-r--r-- | tvix/glue/src/tests/blob.tar.xz | bin | 0 -> 172 bytes |
1 files changed, 0 insertions, 0 deletions
diff --git a/tvix/glue/src/tests/blob.tar.xz b/tvix/glue/src/tests/blob.tar.xz
new file mode 100644
index 000000000000..324a99d89549
--- /dev/null
+++ b/tvix/glue/src/tests/blob.tar.xz
Binary files differ |