NetworkInspector.Values 0.2.0

There is a newer version of this package available.
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
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="NetworkInspector.Values" Version="0.2.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="NetworkInspector.Values" Version="0.2.0" />
                    
Directory.Packages.props
<PackageReference Include="NetworkInspector.Values" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add NetworkInspector.Values --version 0.2.0
                    
#r "nuget: NetworkInspector.Values, 0.2.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package NetworkInspector.Values@0.2.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=NetworkInspector.Values&version=0.2.0
                    
Install as a Cake Addin
#tool nuget:?package=NetworkInspector.Values&version=0.2.0
                    
Install as a Cake Tool

NetworkInspector.Values

NuGet

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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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.

Version Downloads Last Updated
0.3.0 29 5/21/2026
0.2.0 51 5/19/2026