Common: Add ByteStream implementations for zstd

This commit is contained in:
Connor McLaughlin
2022-08-18 22:42:22 +10:00
parent 759938a5cf
commit 0572d0cd4b
5 changed files with 328 additions and 6 deletions

View File

@ -117,6 +117,10 @@ public:
// null memory stream
static std::unique_ptr<NullByteStream> CreateNullStream();
// zstd stream
static std::unique_ptr<ByteStream> CreateZstdCompressStream(ByteStream* src_stream, int compression_level);
static std::unique_ptr<ByteStream> CreateZstdDecompressStream(ByteStream* src_stream, u32 compressed_size);
// copies one stream's contents to another. rewinds source streams automatically, and returns it back to its old
// position.
static bool CopyStream(ByteStream* pDestinationStream, ByteStream* pSourceStream);