Skip to content

NotOfficer/GenericReader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

63 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🚀 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


📦 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.


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

About

A generic binary reader for .NET

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages