NetworkInspector.Values
0.3.0
dotnet add package NetworkInspector.Values --version 0.3.0
NuGet\Install-Package NetworkInspector.Values -Version 0.3.0
<PackageReference Include="NetworkInspector.Values" Version="0.3.0" />
<PackageVersion Include="NetworkInspector.Values" Version="0.3.0" />
<PackageReference Include="NetworkInspector.Values" />
paket add NetworkInspector.Values --version 0.3.0
#r "nuget: NetworkInspector.Values, 0.3.0"
#:package NetworkInspector.Values@0.3.0
#addin nuget:?package=NetworkInspector.Values&version=0.3.0
#tool nuget:?package=NetworkInspector.Values&version=0.3.0
NetworkInspector.Values
Typed address and timestamp primitives for NetworkInspector and related .NET networking workflows.
What This Is
NetworkInspector.Values provides lightweight value types commonly needed in packet pipelines:
MacAddressIPv4AddressIPv6AddressEui64UuidTimestamp
These types are designed for predictable formatting and comparison behavior in parsing and export code.
Why It Stands Out
- Strong typing for common network identifiers.
- Consistent formatting output for logs and exports.
- Easy to reuse outside of the full NetworkInspector stack.
Install
dotnet add package NetworkInspector.Values
Quick Start
using NetworkInspector.Values;
MacAddress mac = new(0x00, 0x1A, 0x2B, 0x3C, 0x4D, 0x5E);
IPv4Address ip4 = new(192, 168, 1, 10);
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.10
Console.WriteLine(ip6); // 2001:db8::1
Console.WriteLine(ts);
Common Tasks
Store Typed Addresses
Use value types in domain objects instead of raw strings to reduce parsing/formatting ambiguity.
Compare And Sort
IEquatable<T> and comparison support make these values practical for indexing and reporting workflows.
Export Stable Text
Use built-in string formatting for CSV/JSON/text output without custom converters for each primitive.
Limits And Thread-Safety Notes
- These structs are value-centric and suitable for concurrent read usage.
- Validate external input before parsing string representations.
Links
License
| 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.