Rdata Stream.Add Compression Mode Method
Adds a compression mode for reading and writing R files.
Definition
Namespace: Extreme.Data.R
Assembly: Extreme.Data (in Extreme.Data.dll) Version: 3.2.0
C#
Assembly: Extreme.Data (in Extreme.Data.dll) Version: 3.2.0
public static void AddCompressionMode(
string name,
byte[] magicBytes,
Func<Stream, Stream> compressStream,
Func<Stream, Stream> decompressStream
)
Parameters
- name String
- The name of the compression mode.
- magicBytes Byte[]
- The 'magic bytes' that identify the compression mode.
- compressStream Func<Stream, Stream>
- A delegate that creates a compressed stream from a stream for writing.
- decompressStream Func<Stream, Stream>
- A delegate that creates a compressed stream from a stream for reading.
Remarks
The only format supported out of the box
is gzip compression. It does not need to be added explicitly.