Table of Contents

Class MemoryStreamDeflate

Namespace
KZDev.PerfUtils
Assembly
KZDev.PerfUtils.dll

Provides methods for compressing and decompressing data into and out of MemoryStreamSlim instances using the Deflate compression algorithm.

public static class MemoryStreamDeflate
Inheritance
MemoryStreamDeflate

Methods

Compress(byte[])

Compresses the data in the source byte array and returns a new MemoryStreamSlim instance containing the compressed data.

Compress(byte[], MemoryStreamDeflateOptions)

Compresses the data in the source byte array and returns a new MemoryStreamSlim instance containing the compressed data.

Compress(byte[], Func<MemoryStreamDeflateOptions, MemoryStreamDeflateOptions>)

Compresses the data in the source byte array and returns a new MemoryStreamSlim instance containing the compressed data.

Compress(Stream)

Compresses the data in the source stream and returns a new MemoryStreamSlim instance containing the compressed data.

Compress(Stream, MemoryStreamDeflateOptions)

Compresses the data in the source stream and returns a new MemoryStreamSlim instance containing the compressed data.

Compress(Stream, Func<MemoryStreamDeflateOptions, MemoryStreamDeflateOptions>)

Compresses the data in the source stream and returns a new MemoryStreamSlim instance containing the compressed data.

Compress(in ReadOnlySpan<byte>)

Compresses the data in the source span and returns a new MemoryStreamSlim instance containing the compressed data.

Compress(in ReadOnlySpan<byte>, MemoryStreamDeflateOptions)

Compresses the data in the source span and returns a new MemoryStreamSlim instance containing the compressed data.

Compress(in ReadOnlySpan<byte>, Func<MemoryStreamDeflateOptions, MemoryStreamDeflateOptions>)

Compresses the data in the source span and returns a new MemoryStreamSlim instance containing the compressed data.

Compress(string)

Compresses the data in the source string and returns a new MemoryStreamSlim instance containing the compressed data.

Compress(string, MemoryStreamDeflateOptions)

Compresses the data in the source string and returns a new MemoryStreamSlim instance containing the compressed data.

Compress(string, Func<MemoryStreamDeflateOptions, MemoryStreamDeflateOptions>)

Compresses the data in the source string and returns a new MemoryStreamSlim instance containing the compressed data.

Compress(string, Encoding)

Compresses the data in the source string with the specified encoding and returns a new MemoryStreamSlim instance containing the compressed data.

Compress(string, Encoding, MemoryStreamDeflateOptions)

Compresses the data in the source string with the specified encoding and returns a new MemoryStreamSlim instance containing the compressed data.

Compress(string, Encoding, Func<MemoryStreamDeflateOptions, MemoryStreamDeflateOptions>)

Compresses the data in the source string with the specified encoding and returns a new MemoryStreamSlim instance containing the compressed data.

CompressAsync(Stream, MemoryStreamDeflateOptions, CancellationToken)

Asynchronously compresses the data in the source stream and returns a new MemoryStreamSlim instance containing the compressed data.

CompressAsync(Stream, Func<MemoryStreamDeflateOptions, MemoryStreamDeflateOptions>, CancellationToken)

Asynchronously compresses the data in the source stream and returns a new MemoryStreamSlim instance containing the compressed data.

CompressAsync(Stream, CancellationToken)

Asynchronously compresses the data in the source stream and returns a new MemoryStreamSlim instance containing the compressed data.

CompressAsync<TState>(Stream, Func<MemoryStreamDeflateOptions, TState, MemoryStreamDeflateOptions>, TState, CancellationToken)

Asynchronously compresses the data in the source stream and returns a new MemoryStreamSlim instance containing the compressed data.

Compress<TState>(byte[], Func<MemoryStreamDeflateOptions, TState, MemoryStreamDeflateOptions>, TState)

Compresses the data in the source byte array and returns a new MemoryStreamSlim instance containing the compressed data.

Compress<TState>(Stream, Func<MemoryStreamDeflateOptions, TState, MemoryStreamDeflateOptions>, TState)

Compresses the data in the source stream and returns a new MemoryStreamSlim instance containing the compressed data.

Compress<TState>(in ReadOnlySpan<byte>, Func<MemoryStreamDeflateOptions, TState, MemoryStreamDeflateOptions>, TState)

Compresses the data in the source span and returns a new MemoryStreamSlim instance containing the compressed data.

Compress<TState>(string, Func<MemoryStreamDeflateOptions, TState, MemoryStreamDeflateOptions>, TState)

Compresses the data in the source string and returns a new MemoryStreamSlim instance containing the compressed data.

Compress<TState>(string, Encoding, Func<MemoryStreamDeflateOptions, TState, MemoryStreamDeflateOptions>, TState)

Compresses the data in the source string with the specified encoding and returns a new MemoryStreamSlim instance containing the compressed data.

Decompress(Stream)

Decompresses the data in the source stream and returns a new MemoryStreamSlim instance containing the decompressed data.

Decompress(Stream, MemoryStreamSlimOptions)

Decompresses the data in the source stream and returns a new MemoryStreamSlim instance containing the decompressed data.

Decompress(Stream, Func<MemoryStreamSlimOptions, MemoryStreamSlimOptions>)

Decompresses the data in the source stream and returns a new MemoryStreamSlim instance containing the decompressed data.

DecompressAsync(Stream, MemoryStreamSlimOptions, CancellationToken)

Asynchronously decompresses the data in the source stream and returns a new MemoryStreamSlim instance containing the decompressed data.

DecompressAsync(Stream, Func<MemoryStreamSlimOptions, MemoryStreamSlimOptions>, CancellationToken)

Asynchronously decompresses the data in the source stream and returns a new MemoryStreamSlim instance containing the decompressed data.

DecompressAsync(Stream, CancellationToken)

Asynchronously decompresses the data in the source stream and returns a new MemoryStreamSlim instance containing the decompressed data.

DecompressAsync<TState>(Stream, Func<MemoryStreamSlimOptions, TState, MemoryStreamSlimOptions>, TState, CancellationToken)

Asynchronously decompresses the data in the source stream and returns a new MemoryStreamSlim instance containing the decompressed data.

DecompressToString(Stream)

Decompresses the data in the source stream and returns a new string instance containing the decompressed data decoded with UTF-8.

DecompressToString(Stream, MemoryStreamSlimOptions)

Decompresses the data in the source stream and returns a new string instance containing the decompressed data decoded with UTF-8.

DecompressToString(Stream, Func<MemoryStreamSlimOptions, MemoryStreamSlimOptions>)

Decompresses the data in the source stream and returns a new string instance containing the decompressed data decoded with UTF-8.

DecompressToString(Stream, Encoding)

Decompresses the data in the source stream and returns a new string instance containing the decompressed data decoded with UTF-8.

DecompressToString(Stream, Encoding, MemoryStreamSlimOptions)

Decompresses the data in the source stream and returns a new string instance containing the decompressed data decoded with UTF-8.

DecompressToString(Stream, Encoding, Func<MemoryStreamSlimOptions, MemoryStreamSlimOptions>)

Decompresses the data in the source stream and returns a new string instance containing the decompressed data decoded with UTF-8.

DecompressToStringAsync(Stream, MemoryStreamSlimOptions, CancellationToken)

Asynchronously decompresses the data in the source stream and returns a new string instance containing the decompressed data decoded with UTF-8.

DecompressToStringAsync(Stream, Func<MemoryStreamSlimOptions, MemoryStreamSlimOptions>, CancellationToken)

Asynchronously decompresses the data in the source stream and returns a new string instance containing the decompressed data decoded with UTF-8.

DecompressToStringAsync(Stream, Encoding, MemoryStreamSlimOptions, CancellationToken)

Asynchronously decompresses the data in the source stream and returns a new string instance containing the decompressed data decoded with UTF-8.

DecompressToStringAsync(Stream, Encoding, Func<MemoryStreamSlimOptions, MemoryStreamSlimOptions>, CancellationToken)

Asynchronously decompresses the data in the source stream and returns a new string instance containing the decompressed data decoded with UTF-8.

DecompressToStringAsync(Stream, Encoding, CancellationToken)

Asynchronously decompresses the data in the source stream and returns a new string instance containing the decompressed data decoded with UTF-8.

DecompressToStringAsync(Stream, CancellationToken)

Asynchronously decompresses the data in the source stream and returns a new string instance containing the decompressed data decoded with UTF-8.

DecompressToStringAsync<TState>(Stream, Func<MemoryStreamSlimOptions, TState, MemoryStreamSlimOptions>, TState, CancellationToken)

Asynchronously decompresses the data in the source stream and returns a new string instance containing the decompressed data decoded with UTF-8.

DecompressToStringAsync<TState>(Stream, Encoding, Func<MemoryStreamSlimOptions, TState, MemoryStreamSlimOptions>, TState, CancellationToken)

Asynchronously decompresses the data in the source stream and returns a new string instance containing the decompressed data decoded with UTF-8.

DecompressToString<TState>(Stream, Func<MemoryStreamSlimOptions, TState, MemoryStreamSlimOptions>, TState)

Decompresses the data in the source stream and returns a new string instance containing the decompressed data decoded with UTF-8.

DecompressToString<TState>(Stream, Encoding, Func<MemoryStreamSlimOptions, TState, MemoryStreamSlimOptions>, TState)

Decompresses the data in the source stream and returns a new string instance containing the decompressed data decoded with UTF-8.

Decompress<TState>(Stream, Func<MemoryStreamSlimOptions, TState, MemoryStreamSlimOptions>, TState)

Decompresses the data in the source stream and returns a new MemoryStreamSlim instance containing the decompressed data.