From 54609e8c17e60c1a3feaea5430887a6cc6bdce0f Mon Sep 17 00:00:00 2001 From: Aspen Smith Date: Fri, 23 Feb 2024 14:42:52 -0500 Subject: feat(tvix/glue): Add AsyncRead wrapper to decompress streams 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 Tested-by: BuildkiteCI --- tvix/glue/src/tests/blob.tar.xz | Bin 0 -> 172 bytes 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 tvix/glue/src/tests/blob.tar.xz (limited to 'tvix/glue/src/tests/blob.tar.xz') 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 Binary files /dev/null and b/tvix/glue/src/tests/blob.tar.xz differ -- cgit 1.4.1