NetworkInspector.Values
0.2.0
See the version list below for details.
dotnet add package NetworkInspector.Values --version 0.2.0
NuGet\Install-Package NetworkInspector.Values -Version 0.2.0
<PackageReference Include="NetworkInspector.Values" Version="0.2.0" />
<PackageVersion Include="NetworkInspector.Values" Version="0.2.0" />
<PackageReference Include="NetworkInspector.Values" />
paket add NetworkInspector.Values --version 0.2.0
#r "nuget: NetworkInspector.Values, 0.2.0"
#:package NetworkInspector.Values@0.2.0
#addin nuget:?package=NetworkInspector.Values&version=0.2.0
#tool nuget:?package=NetworkInspector.Values&version=0.2.0
NetworkInspector.Values
Strongly-typed network address and timestamp value types for the NetworkInspector framework.
All types are readonly struct and designed for zero-allocation use in hot paths.
They integrate with ZeroAlloc for
heap-free string formatting.
Value Types
| Type | Size | Description |
|---|---|---|
MacAddress |
6 bytes | 48-bit IEEE 802 MAC address (EUI-48). Formatted as 00:1a:2b:3c:4d:5e. |
IPv4Address |
4 bytes | 32-bit IPv4 address. Formatted in dotted-decimal notation (192.168.1.1). |
IPv6Address |
16 bytes | 128-bit IPv6 address. Formatted per RFC 5952 with :: compression. |
Eui64 |
8 bytes | 64-bit EUI-64 identifier. Used in IPv6 interface IDs and IEEE 802.15.4. |
Uuid |
16 bytes | 128-bit UUID. Formatted as xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx. |
Timestamp |
8 bytes | Nanosecond-precision UNIX timestamp. Formatted as ISO 8601 with nanosecond resolution. |
Usage
MacAddress mac = new MacAddress(0x00, 0x1A, 0x2B, 0x3C, 0x4D, 0x5E);
IPv4Address ip4 = new IPv4Address(192, 168, 1, 1);
IPv6Address ip6 = IPv6Address.Parse("2001:db8::1");
Timestamp ts = Timestamp.FromSecs(1_700_000_000);
Console.WriteLine(mac); // 00:1a:2b:3c:4d:5e
Console.WriteLine(ip4); // 192.168.1.1
Console.WriteLine(ip6); // 2001:db8::1
Console.WriteLine(ts); // ISO 8601 with nanosecond precision
All types implement IEquatable<T>, IComparable<T>, and IFormattable.
Timestamp supports arithmetic operators for duration math.
Installation
dotnet add package NetworkInspector.Values
License
MIT License — © DevAM
| 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
- ZeroAlloc (>= 0.2.0)
NuGet packages (2)
Showing the top 2 NuGet packages that depend on NetworkInspector.Values:
| Package | Downloads |
|---|---|
|
NetworkInspector.Core
High-performance protocol analysis stack for network packet dissection. Provides the core framework for protocol registration, field trees, packet parsing, and cross-packet indexing. Includes a Roslyn source generator for declarative protocol definitions. |
|
|
NetworkInspector.FrameBuilder
Typed, allocation-free frame-builder library for NetworkInspector. Compose protocol stacks (Ethernet, VLAN, IPv4, IPv6, UDP, TCP, WebSocket, SOME/IP, CAN, …) using a generic cons-list API and emit RFC-conformant wire frames with zero heap allocations on the hot path. |
GitHub repositories
This package is not used by any popular GitHub repositories.