This library compries of I/O functionality used by other SabreTools projects.
Find the link to the Nuget package here.
Below are a list of the included namespaces and their overall utility.
Generic helper classes that involve custom functionality and utility.
Various compression implementations that are used across multiple projects. Most of the implementations are be ports of existing C and C++ code.
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.
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 |
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.
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.
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
.
Custom Stream
implementations that are required for specialized use:
ReadOnlyBitStream
: A readonly stream implementation allowing bitwise readingReadOnlyCompositeStream
: A readonly stream implementation that wraps multiple source streams in a set order
For the most recent stable build, download the latest release here: Releases Page
For the latest WIP build here: Rolling Release