Skip to content

Latest commit

History

75 Commits

Folders and files

NameName
Last commit message
Last commit date

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 releaseNuGetNuGet DownloadsGitHub issuesLicense


📦 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

usingGenericReader;// From fileusingvarfileReader=newGenericFileReader(@"C:\Test\Example.bin");varnumberFromFile=fileReader.Read<uint>();// From streamusingvarstreamReader=newGenericStreamReader(GetStream());varnumberFromStream=streamReader.Read<uint>();// From byte arrayusingvarbufferReader=newGenericBufferReader(GetBuffer());varnumberFromBuffer=bufferReader.Read<uint>();// From spanvarspanReader=newGenericSpanReader(GetSpan());varnumberFromSpan=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

Stars

8 stars

Watchers

1 watching

Forks

Releases

Sponsor this project

Packages

Used by

Contributors

Languages