SabreTools.IO 1.9.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package SabreTools.IO --version 1.9.0
                    
NuGet\Install-Package SabreTools.IO -Version 1.9.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="SabreTools.IO" Version="1.9.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="SabreTools.IO" Version="1.9.0" />
                    
Directory.Packages.props
<PackageReference Include="SabreTools.IO" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add SabreTools.IO --version 1.9.0
                    
#r "nuget: SabreTools.IO, 1.9.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.
#:package SabreTools.IO@1.9.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=SabreTools.IO&version=1.9.0
                    
Install as a Cake Addin
#tool nuget:?package=SabreTools.IO&version=1.9.0
                    
Install as a Cake Tool

SabreTools.IO

Build and Test

This library compries of I/O functionality used by other SabreTools projects.

Find the link to the Nuget package here.

Namespaces

Below are a list of the included namespaces and their overall utility.

SabreTools.IO

Generic helper classes that involve custom functionality and utility.

SabreTools.IO.Compression

Various compression implementations that are used across multiple projects. Most of the implementations are be ports of existing C and C++ code.

Supported Compressions
Compression Name Decompress Compress Notes
Blast Yes No
BZip2 Yes Yes Sourced from DotNetZip
Deflate Yes Yes Sourced from DotNetZip
LZ Yes No KWAJ, QBasic 4.5, and SZDD variants; KWAJ incomplete
LZX No No
MSZIP Yes No
Quantum Yes* No Partial implementation based on standalone archives; not working

Note: If something is marked with a * it means that it need testing.

External Libraries
Library Name Use
DotNetZip BZip2 and DEFLATE implementations; minor edits have been made
ZLibPort Adds zlib code for internal and external use; minor edits have been made

SabreTools.IO.Encryption

Various encryption implementations that are used across multiple projects. Most of the implementations are be ports of existing C and C++ code.

Supported Encryption Schemes
Encryption Scheme Encrypt Decrypt Notes
AES/CTR Yes Yes Subset of functionality exposed from The Bouncy Castle Cryptography Library For .NET
MoPaQ No Yes Used to encrypt and decrypt MoPaQ tables for processing

SabreTools.IO.Extensions

Extensions for BinaryReader, byte[], and Stream to help with reading and writing various data types. Some data types are locked behind .NET version support.

This namespace also contains other various extensions that help with common functionality and safe access.

SabreTools.IO.Interfaces

Common interfaces used mainly internal to the library.

Interface Notes
IMatch<T> Represents a matcher for a generic type
IMatchSet<T, U> Represents a set of IMatch<T> types

SabreTools.IO.Logging

Logic for a logging system, including writing to console and textfile outputs. There are 4 possible log levels for logging statements to be invoked with. There is also a stopwatch implementation included for logging statements with automatic timespan tracking.

SabreTools.IO.Matching

Classes designed to make matching contents and paths easier. These classes allow for both grouped and single matching as well as post-processing of matched information.

SabreTools.IO.Readers and SabreTools.IO.Writers

Reading and writing support for the following file types:

  • ClrMamePro-derived Metadata files
  • Standard and non-standard INI files
  • Separated-Value files (e.g. CSV, SSV, TSV)

For a generic INI implementation, see SabreTools.IO.IniFile.

SabreTools.IO.Streams

Custom Stream implementations that are required for specialized use:

  • BufferedStream: A format that is not a true stream implementation used for buffered, single-byte reads
  • ReadOnlyBitStream: A readonly stream implementation allowing bitwise reading
  • ReadOnlyCompositeStream: A readonly stream implementation that wraps multiple source streams in a set order
  • ViewStream: A readonly stream implementation representing a view into source data

SabreTools.IO.Transform

File and stream implementations of common data transformations:

  • Combine using either ordered concatenation or interleaving
  • Split by even/odd chunks or based on block size
  • Convert data either by bit-swapping, byte-swapping, word-swapping, or word/byte-swapping

SabreTools.Numerics

Custom numeric types and related functionality.

Supported Numeric Types
Type Name Description
BothInt8 Both-endian Int8 value
BothUInt8 Both-endian UInt8 value
BothInt16 Both-endian Int16 value
BothUInt16 Both-endian UInt16 value
BothInt32 Both-endian Int32 value
BothUInt32 Both-endian UInt32 value
BothInt64 Both-endian Int64 value
BothUInt64 Both-endian UInt64 value

Both-endian or bi-endian numbers are represented by a little-endian value followed by a big-endian value, where both values are the same number.

SabreTools.Text.Compare

Classes focused on string comparison by natural sorting. For example, "5" would be sorted before "100".

Releases

For the most recent stable build, download the latest release here: Releases Page

For the latest WIP build here: Rolling Release

Product Compatible and additional computed target framework versions.
.NET net5.0 is compatible.  net5.0-windows was computed.  net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 is compatible.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  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.  net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 is compatible. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 is compatible. 
.NET Framework net20 is compatible.  net35 is compatible.  net40 is compatible.  net403 was computed.  net45 was computed.  net451 was computed.  net452 is compatible.  net46 was computed.  net461 was computed.  net462 is compatible.  net463 was computed.  net47 was computed.  net471 was computed.  net472 is compatible.  net48 is compatible.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (9)

Showing the top 5 NuGet packages that depend on SabreTools.IO:

Package Downloads
SabreTools.Serialization

Serialization and deserialization helpers for various types

UnshieldSharp

Port of Unshield and unshieldv3 to C#

WiseUnpacker

Wise installer unpacker based on E_WISE and HWUN

SabreTools.ASN1

Serialization and deserialization helpers for various types

SabreTools.Compression

Clean compression implementations

GitHub repositories (3)

Showing the top 3 popular GitHub repositories that depend on SabreTools.IO:

Repository Stars
SabreTools/MPF
Redumper/Aaru/DiscImageCreator GUI in C#
SabreTools/SabreTools
DAT management tool with advanced editing and sorting features
SabreTools/BinaryObjectScanner
C# protection, packer, and archive scanning library
Version Downloads Last Updated
1.9.1 0 3/5/2026
1.9.0 983 11/14/2025
1.8.0 853 10/28/2025
1.7.6 934 10/7/2025
1.7.5 887 9/24/2025
1.7.4 294 9/22/2025
1.7.3 425 9/21/2025
1.7.2 587 9/5/2025
1.7.1 361 9/1/2025
1.7.0 978 7/24/2025
1.6.3 762 5/12/2025
1.6.2 2,873 12/16/2024
1.6.1 2,784 11/30/2024
1.6.0 2,617 11/26/2024
1.5.1 4,053 11/16/2024
1.5.0 1,049 11/13/2024
1.4.13 3,381 10/24/2024
1.4.12 2,751 10/1/2024
1.4.11 5,339 5/13/2024
1.4.10 562 5/7/2024
Loading failed