LiteCDF 4.0.0

dotnet add package LiteCDF --version 4.0.0                
NuGet\Install-Package LiteCDF -Version 4.0.0                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="LiteCDF" Version="4.0.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add LiteCDF --version 4.0.0                
#r "nuget: LiteCDF, 4.0.0"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install LiteCDF as a Cake Addin
#addin nuget:?package=LiteCDF&version=4.0.0

// Install LiteCDF as a Cake Tool
#tool nuget:?package=LiteCDF&version=4.0.0                

LiteCDF

logo

NuGet

A high performance reader of compound document format (CDF) files.

Usage

Opening a compound file:

CompoundFile cf = Cdf.Open(@"C:\path\to\file.cf");

This will return an object with all the directory entries contained in the file. There are overloads available that can read from a Stream or a byte[] object for extra convenience.

If you just want to quickly extract a stream, you can use the OpenAndReadStream method instead. Its second parameter is a predicate that specifies how to match the name of the stream to extract:

byte[] stream = Cdf.OpenAndReadStream(@"C:\path\to\file.cf", n => n == "MyStream");

This method will return as soon as a matching stream has been found.

To extract more than one stream that matches a specific pattern, you can use the OpenAndReadMultipleStreams:

Dictionary<string, byte[]> streams = Cdf.OpenAndReadMultipleStreams(@"C:\path\to\file.cf", n => n.EndsWith("Stream"));

This will return any matching streams in the form of a dictionary where each key-value pair represents the name and the associated byte array of the stream, respectively.

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
4.0.0 174 6/14/2024
3.0.2 584 6/19/2022
2.0.0 481 11/10/2020
1.3.0 525 7/5/2020
1.2.8 488 7/2/2020

4.0.0 Now only supports .NET 8