GenericReader 2.2.4

dotnet add package GenericReader --version 2.2.4
                    
NuGet\Install-Package GenericReader -Version 2.2.4
                    
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="GenericReader" Version="2.2.4" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="GenericReader" Version="2.2.4" />
                    
Directory.Packages.props
<PackageReference Include="GenericReader" />
                    
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 GenericReader --version 2.2.4
                    
#r "nuget: GenericReader, 2.2.4"
                    
#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.
#addin nuget:?package=GenericReader&version=2.2.4
                    
Install GenericReader as a Cake Addin
#tool nuget:?package=GenericReader&version=2.2.4
                    
Install GenericReader as a Cake Tool

<div align="center">

🚀 GenericReader

A generic, extensible binary reader for .NET
Effortlessly read from files, streams, buffers, or spans with a single unified API.

GitHub release NuGet NuGet Downloads GitHub issues License

</div>


📦 Installation

Install via NuGet:

Install-Package GenericReader

✨ Features

  • Read from files, streams, buffers, and spans
  • Generic Read<T>() API for simplicity and flexibility
  • Lightweight and easy to integrate

🔧 Example Usage

using GenericReader;

// From file
using var fileReader = new GenericFileReader(@"C:\Test\Example.bin");
var numberFromFile = fileReader.Read<uint>();

// From stream
using var streamReader = new GenericStreamReader(GetStream());
var numberFromStream = streamReader.Read<uint>();

// From byte array
using var bufferReader = new GenericBufferReader(GetBuffer());
var numberFromBuffer = bufferReader.Read<uint>();

// From span
var spanReader = new GenericSpanReader(GetSpan());
var numberFromSpan = spanReader.Read<uint>();

🤝 Contributing

Contributions are welcome and appreciated!

Whether it's fixing a typo, suggesting an improvement, or submitting a pull request — every bit helps.


📄 License

This project is licensed under the MIT License.


<div align="center">

⭐️ Star the repo if you find it useful!
Feel free to open an issue if you have any questions or feedback.

</div>

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.  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 was computed.  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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net8.0

    • No dependencies.
  • net9.0

    • No dependencies.

NuGet packages (2)

Showing the top 2 NuGet packages that depend on GenericReader:

Package Downloads
EpicManifestParser

A .NET parser & downloader for EpicGames manifests

Usmap.NET

A .NET parser for .usmap files

GitHub repositories

This package is not used by any popular GitHub repositories.