Rdata Stream.Add Compression Mode Method
Adds a compression mode for reading and writing R files.
Definition
Namespace: Numerics.NET.Data.R
Assembly: Numerics.NET.Data (in Numerics.NET.Data.dll) Version: 4.0.3
C#
Assembly: Numerics.NET.Data (in Numerics.NET.Data.dll) Version: 4.0.3
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.