69 packages tagged with “bytes”
ByteSize is a utility class that makes byte size representation in code easier by removing ambiguity of the value being represented. ByteSize is to bytes what System.TimeSpan is to time.
FileTypeChecker is a easy to use library that provides quality identification of a file type. This will help you to secure your applications and validate all files that are provided by external sources with few lines of code.
A collection of helpful byte[] extension methods
A collection of helpful ReadOnlySpan (byte) extension methods
Don't let users to inject you an invalid file! FileTypeChecker is a easy to use library that allows you to read file and recognize its type. This will help you to validate all files that is provided by external sources.
Calculate, format, or print file sizes; with support for both base 10 (e.g. kilobyte, megabyte, KB, MB) and base 2 (e.g. kibibyte, mebibyte, KiB, MiB) sizes.
Small package of a few parsers I have reused on multiple occasions by now.
SlidingWindow provides an interface to retrieve chunks from a byte array using a sliding window.
A media types library for Windows, Linux, and MacOS.
File type checker that checks the file's magic numbers/identifying bytes. Useful for verifying uploaded files in web applications. NuGet package of code originally written by https://github.com/mjolka and extended to allow for dependency injecting the known file types.
Gulliver is a C# utility package and library engineered for the manipulation of arbitrary sized byte arrays accounting for appropriate endianness and jagged byte length. Functionality includes the as previously unsupported standard set of boolean algebraic operations, bitwise shifting, and unsigned endian aware mathematical addition, subtraction, and comparison.
This package is deprecated. Use https://www.nuget.org/packages/Matarillo.IO/
SpanReader and SpanWriter which wraps a Span<byte> and provide a convenient functionality for reading and writing.
Package Description
Library for generating random bytes with an interface to allow easy mocking in unit tests.
ProtocolReader class reads bytes according to a certain protocol.
A formatting implementation for KM.MessageQueue that converts a string to a byte array
A library for mapping binary data onto .NET primitive types. Mapping to objects of custom classes also supported.
An implementation of the Narumikazuchi.Serialization interfaces to serialize classes into an array of bytes. For more information about it's usage visit the [wiki](https://github.com/Narumikazuchi/Serialization/wiki).
An alternative to the .NET BinaryReader and BinaryWriter objects that allows you to read and write individual bits of data.
Change to referencing PigToolsLiteLib to avoid class name conflicts.
A library providing simple functions to work with byte arrays.
Binary data validation components for the Agenix framework. Provides tools for validating binary files, byte arrays, and binary content in automated tests, supporting various binary formats and comparison operations.
A readonly struct for representing byte sizes with human-readable formatting, arithmetic operations, and full serialization support including dictionary key compatibility.
Main library for all BogaNet-packages filled with useful helpers to speed up C# development.
Image.Resize(extension) High quality resizing of the image in just one line of code. Image.ToBytes(extension) Convert image/bitmap to byte array. Image.SaveAs(extension) Save Image/Bitmap as file. Supported formats are: BMP, GIF, JPG, PNG and TIF. More GDI+ extensions will come in next release. (also expect some WPF/UWP extensions (Windows.Media) to arrive in a later version.
Dependency injection friendly small encryption tool
The framework BitArray is helpful but it has a serious flaw in the fact that it is not immutable. This is the primary motivation for working on this package in order to achieve just such an ImmutableBitArray. Reflexive operations can modify an instance but otherwise bitwise operations should yield a wholely new instance.
A libary for conveniently describing things like a number of bytes or a distance with support for many units.
Conceptually immutable byte string type