Fora.Encoding 20261123.0.0

dotnet add package Fora.Encoding --version 20261123.0.0
                    
NuGet\Install-Package Fora.Encoding -Version 20261123.0.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="Fora.Encoding" Version="20261123.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Fora.Encoding" Version="20261123.0.0" />
                    
Directory.Packages.props
<PackageReference Include="Fora.Encoding" />
                    
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 Fora.Encoding --version 20261123.0.0
                    
#r "nuget: Fora.Encoding, 20261123.0.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 Fora.Encoding@20261123.0.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=Fora.Encoding&version=20261123.0.0
                    
Install as a Cake Addin
#tool nuget:?package=Fora.Encoding&version=20261123.0.0
                    
Install as a Cake Tool

description: Package-focused documentation for the Fora.Encoding NuGet package, the IEEE 1516.2-2025 data encoding of the Fora family.

Fora.Encoding

Fora.Encoding encodes and decodes attribute and parameter values by the data encoding rules of IEEE 1516.2-2025 (HLA 4 OMT), the byte layout every HLA 4 federate and RTI agrees on. Fora.Client brings it in; code generated by SimGe uses it for the FOM's data types.

Contents

  • IDataElement — Encode(), Decode(buffer, offset), the encoded length and the octet boundary (§4.14.10) that composite types pad to.
  • Basic data representations (Fora.Encoding.Primitives): HlaInteger16/32/64, HlaUnsignedInteger16/32/64, HlaFloat32/64 and HlaOctetPair, each in big- and little-endian (…Be, …Le), HlaOctet, HlaBoolean, HlaAsciiChar, HlaAsciiString, HlaUnicodeChar, HlaUnicodeString, HlaOpaqueData, HlaHandle, HlaToken.
  • Constructed types (Fora.Encoding.Composed): HlaFixedRecord, HlaFixedArray, HlaVariableArray, HlaVariantRecord, HlaExtendableVariantRecord, HlaHandleList.
  • HlaPrimitives — one-call encode and decode of single values, e.g. HlaPrimitives.EncodeInt32Be(42).

Install

dotnet add package Fora.Encoding --version 20261123.0.0

Example

using Fora.Encoding.Composed;
using Fora.Encoding.Primitives;

// A fixed record of an HLAunicodeString and an HLAinteger32BE, padded as IEEE 1516.2-2025 requires.
byte[] bytes = new HlaFixedRecord(new HlaUnicodeString("Alice"), new HlaInteger32Be(42)).Encode();

var name = new HlaUnicodeString();
var age = new HlaInteger32Be();
new HlaFixedRecord(name, age).Decode(bytes);   // decodes into the fields: "Alice", 42

// A variable array: a 4-byte element count, then the elements.
var names = new HlaVariableArray(() => new HlaUnicodeString(),
    [new HlaUnicodeString("Alice"), new HlaUnicodeString("Bob")]);
var decoded = new HlaVariableArray(() => new HlaUnicodeString());
decoded.Decode(names.Encode());

Support Fora

Fora is free. If it is useful in your work, you can support its development through GitHub Sponsors.


Disclaimer

Fora environment is a free academic research toolbox provided “as is” without warranty or guaranteed support. It is intended solely for research and educational use and is not suitable for production or mission-critical environments. Backward compatibility is not guaranteed. Users assume all risks associated with its use. Feedback may be submitted via the Contact page. Sponsorships and donations are voluntary and do not create any warranty, support or service obligation.

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 (1)

Showing the top 1 NuGet packages that depend on Fora.Encoding:

Package Downloads
Fora.Client

IEEE 1516-2025 (HLA 4) Federate Protocol client library for .NET: the HLA 4 services over TCP, TLS, WebSocket and WSS, for any HLA 4 Federate Protocol RTI.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
20261123.0.0 0 11/23/2026
20261004.0.0 137 10/4/2026
20260720.0.0 158 7/20/2026
20260705.0.0 150 7/4/2026
20260611.0.0 152 6/3/2026

20261123.0.0 - IEEE 1516.2-2025 data-type encoding, released with the Fora family.