LiteCDF 4.0.0
dotnet add package LiteCDF --version 4.0.0
NuGet\Install-Package LiteCDF -Version 4.0.0
<PackageReference Include="LiteCDF" Version="4.0.0" />
paket add LiteCDF --version 4.0.0
#r "nuget: LiteCDF, 4.0.0"
// 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
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 | Versions 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. |
-
net8.0
- BinaryBuffers (>= 3.0.1)
- StreamExtensions (>= 3.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
4.0.0 Now only supports .NET 8