Vrmac.Utils
1.0.0
dotnet add package Vrmac.Utils --version 1.0.0
NuGet\Install-Package Vrmac.Utils -Version 1.0.0
<PackageReference Include="Vrmac.Utils" Version="1.0.0" />
<PackageVersion Include="Vrmac.Utils" Version="1.0.0" />
<PackageReference Include="Vrmac.Utils" />
paket add Vrmac.Utils --version 1.0.0
#r "nuget: Vrmac.Utils, 1.0.0"
#:package Vrmac.Utils@1.0.0
#addin nuget:?package=Vrmac.Utils&version=1.0.0
#tool nuget:?package=Vrmac.Utils&version=1.0.0
Vrmac.Utils
This library implements a few utility classes consumed by other Vrmac.* packages.
Spansstatic class contains functions to concatenate spans of bytes into newly allocated arrays.MultiBytestatic class implements variable-length integer codec specified in the section 4 “Variable-Size Integer” of RFC 8794. The class only supports integers in [ 0 .. 2^31 - 1 ] interval.LineParserstatic class implements a function to split ASCII or UTF-8 text in memory into lines without copying the data. It supports Windows and Unix line ending conventions, also the mix of them.RentedArraystructure is a RAII wrapper around array of bytes rented from the pool, along with HTTP status code. The array is optional; can also be constructed with just the status.Utf8StreamExtensionsstatic class contains extension methods to write bytes, printed integers, and UTC timestamp strings into UTF-8 stream of bytes.HtmlEncoderstatic class implements functions similar to WebUtility.HtmlEncode producing UTF-8 output instead of UTF-16.CachedMemStreamstatic class implements a pool of cached reusable MemoryStream objects, at most one per thread. Do not retain the streams obtained fromCachedMemStream.threadLocal()function acrossawait-s, things will probably fail catastrophically because two threads will end up sharing one stream.CompressedIDstatic class implements functions to format and parse unsigned numbers for/from HTTP query string values. Designed for primary keys like this:
oid bigint UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY COMMENT 'Primary key, int64'
Note these numbers, as well as their encoded representation, are easily predictable, and the class does nothing to address that. When security matters, do something reasonable in the consuming code.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. 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. |
-
net10.0
- No dependencies.
NuGet packages (4)
Showing the top 4 NuGet packages that depend on Vrmac.Utils:
| Package | Downloads |
|---|---|
|
Vrmac.Html
Runtime support for web pages served from HTML templates |
|
|
Vrmac.Security
Cryptography-related functions built on top of the standard library |
|
|
Vrmac.Uploads
Kestrel-based server of the resumable file upload protocol |
|
|
Vrmac.Markdown
Renders markdown into HTML |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.0.0 | 85 | 9/30/2026 |