K4os.Compression.LZ4.Streams LZ4 Frame descriptor. Content length. Not always known. Indicates if content checksum is provided. Indicates if blocks are chained (dependent) or not (independent). Indicates if block checksums are provided. Dictionary id. May be null. Block size. Completely empty class to do nothing. It is used internally instead of CancellationToken to make sure blocking operations are easily distinguishable from async ones (you cannot call blocking operation by accident as they *require* EmptyToken). Base class for LZ4 encoder and decoder streams. Cannot be used on its own it just provides some shared functionality. Read-only position in the stream. Trying to set it will throw . Decoder settings. Extra memory for decompression. LZ4 Decompression stream handling. Creates new instance . Inner stream. A function which will create appropriate decoder depending on frame descriptor. If true inner stream will not be closed after disposing. If true reading from stream will be "interactive" allowing to read bytes as soon as possible, even if more data is expected. Length of stream. Please note, this will only work if original LZ4 stream has ContentLength field set in descriptor. Otherwise returned value will be -1. It will also require synchronous stream access, so it wont work if AllowSynchronousIO is false. Position within the stream. Position can be read, but cannot be set as LZ4 stream does not have Seek capability. LZ4 encoder settings. Content length. It is not enforced, it can be set to any value, but it will be written to the stream so it can be used while decoding. If you don't know the length just leave default value. Indicates if blocks should be chained (dependent) or not (independent). Dependent blocks (with chaining) provide better compression ratio but are a little but slower and take more memory. Block size. You can use any block size, but default values for LZ4 are 64k, 256k, 1m, and 4m. 64k is good enough for dependent blocks, but for independent blocks bigger is better. Indicates is content checksum is provided. Not implemented yet. Indicates if block checksum is provided. Not implemented yet. Dictionary id. Not implemented yet. Compression level. Extra memory (for the process, more is usually better). LZ4 compression stream. LZ4 compression stream. Creates new instance of . Inner stream. LZ4 Descriptor. Function which will take descriptor and return appropriate encoder. Indicates if stream should be left open after disposing. Length of the stream and number of bytes written so far. Read-only position in the stream. Trying to set it will throw . LZ4 frame descriptor. Content length (if available). Indicates if content checksum if present. Indicates if blocks are chained. Indicates if block checksums are present. Dictionary id (or null). Block size. Creates new instance of . Content length. Content checksum flag. Chaining flag. Block checksum flag. Dictionary id. Block size. Utility class with factory methods to create LZ4 compression and decompression streams. Created compression stream on top of inner stream. Inner stream. Compression settings. Leave inner stream open after disposing. Compression stream. Created compression stream on top of inner stream. Inner stream. Compression level. Extra memory used for compression. Leave inner stream open after disposing. Compression stream. Creates decompression stream on top of inner stream. Inner stream. Decompression settings. Leave inner stream open after disposing. If true reading from stream will be "interactive" allowing to read bytes as soon as possible, even if more data is expected. Decompression stream. Creates decompression stream on top of inner stream. Inner stream. Extra memory used for decompression. Leave inner stream open after disposing. If true reading from stream will be "interactive" allowing to read bytes as soon as possible, even if more data is expected. Decompression stream.