Nalix.Environment
14.4.0
dotnet add package Nalix.Environment --version 14.4.0
NuGet\Install-Package Nalix.Environment -Version 14.4.0
<PackageReference Include="Nalix.Environment" Version="14.4.0" />
<PackageVersion Include="Nalix.Environment" Version="14.4.0" />
<PackageReference Include="Nalix.Environment" />
paket add Nalix.Environment --version 14.4.0
#r "nuget: Nalix.Environment, 14.4.0"
#:package Nalix.Environment@14.4.0
#addin nuget:?package=Nalix.Environment&version=14.4.0
#tool nuget:?package=Nalix.Environment&version=14.4.0
Nalix.Environment
Runtime bootstrap, configuration loading, memory I/O primitives, filesystem setup, and timing utilities for Nalix.
Nalix.Environment is intentionally low level. It provides the infrastructure used by higher-level packages without depending on networking, hosting, or runtime dispatch code.
Install
dotnet add package Nalix.Environment
What It Provides
| Area | Purpose | Main types |
|---|---|---|
| Memory I/O | Span-based readers, writers, and leased buffers | DataReader, DataWriter, BufferLease |
| Configuration | AOT-safe INI loading and option binding | ConfigurationManager, ConfigurationLoader, IniConfig |
| Fragmentation | Multi-chunk payload reassembly and timeout tracking | FragmentAssembler, FragmentHeader, FragmentAssemblyResult, FragmentStreamId |
| Filesystem | Cross-platform application directories and permission hardening | Directories |
| Time | Unix clock helpers and timing scopes | Clock, TimingScope |
| Hashing | Non-cryptographic hashing | XxHash32 |
| Random | Thread-safe pseudo-random and OS CSPRNG helpers | Csprng, OsCsprng |
| Sequencing | Monotonic sequence validation | SequenceCounter |
| Options | Environment-level option models | MemoryOptions, FragmentOptions, SequenceOptions |
Minimal Usage
using Nalix.Environment.Memory;
using DataWriter writer = new(256);
Span<byte> buffer = writer.FreeBuffer;
buffer[0] = 0xAA;
buffer[1] = 0xBB;
writer.Advance(2);
byte[] payload = writer.ToArray();
Design Notes
DataReaderandDataWriterare ref structs for predictable stack-friendly access.BufferLeaseis pooled and must be disposed or returned according to ownership rules.- Configuration binding is designed for Native AOT scenarios.
Documentation
- Package guide: https://ppn.io.vn/packages/nalix-environment/
- API reference: https://ppn.io.vn/api/environment/
| 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. net11.0 is compatible. |
-
net10.0
- Nalix.Abstractions (>= 14.4.0)
-
net11.0
- Nalix.Abstractions (>= 14.4.0)
NuGet packages (2)
Showing the top 2 NuGet packages that depend on Nalix.Environment:
| Package | Downloads |
|---|---|
|
Nalix.Framework
Nalix.Framework is a high-performance foundational library that provides core building blocks for the Nalix ecosystem — including dependency injection, task orchestration, memory pooling, identity generation, and diagnostic event infrastructure. Designed for modern .NET 10, it follows SOLID and Domain-Driven Design (DDD) principles, emphasizing zero-allocation performance, thread safety, and secure coding practices. |
|
|
Nalix.Codec
Nalix.Codec is a high-performance data transformation and framing engine for the Nalix ecosystem. It provides a unified pipeline for serialization, stream compression (LZ4), and AEAD cryptography. Designed for .NET 10, it enables zero-allocation object-to-packet transformation, secure handshake protocols, and robust data framing, ensuring maximum throughput and end-to-end data integrity. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 14.4.0 | 997 | 11/22/2026 |
| 14.3.10 | 212 | 11/19/2026 |
| 14.3.9 | 12,184 | 10/27/2026 |
| 14.3.8 | 717 | 10/26/2026 |
| 14.3.7 | 4,077 | 10/24/2026 |
| 14.3.6 | 166 | 10/24/2026 |
| 14.3.5 | 275 | 10/6/2026 |
| 14.3.4 | 150 | 10/6/2026 |
| 14.3.3 | 204 | 9/26/2026 |
| 14.3.2 | 170 | 9/26/2026 |
| 14.3.1 | 372 | 8/29/2026 |
| 14.3.0 | 196 | 8/27/2026 |
| 14.2.18 | 234 | 8/13/2026 |
| 14.2.17 | 230 | 8/11/2026 |
| 14.2.16 | 275 | 8/1/2026 |
| 14.2.15 | 218 | 7/31/2026 |
| 14.2.14 | 210 | 7/31/2026 |
| 14.2.13 | 207 | 7/31/2026 |
| 14.2.12 | 220 | 7/29/2026 |
| 14.2.11 | 208 | 7/28/2026 |
- Infrastructure Decoupling: Successfully migrated Environment IO, Unix Directory Permissions, and Configuration Loading logic from the main framework to Nalix.Environment.
- Secure Bootstrapping: Hardened filesystem sanitization and directory preparation helpers for cross-platform reliability.
- Performance Configuration: Optimized ConfigurationLoader and Binding systems to support zero-allocation POCO options.
- Clean Dependency Flow: Established a lean foundation that serves as the primary configuration provider for Nalix.Codec, Nalix.Framework, and Nalix.Runtime.