Fora.Encoding
20261123.0.0
dotnet add package Fora.Encoding --version 20261123.0.0
NuGet\Install-Package Fora.Encoding -Version 20261123.0.0
<PackageReference Include="Fora.Encoding" Version="20261123.0.0" />
<PackageVersion Include="Fora.Encoding" Version="20261123.0.0" />
<PackageReference Include="Fora.Encoding" />
paket add Fora.Encoding --version 20261123.0.0
#r "nuget: Fora.Encoding, 20261123.0.0"
#:package Fora.Encoding@20261123.0.0
#addin nuget:?package=Fora.Encoding&version=20261123.0.0
#tool nuget:?package=Fora.Encoding&version=20261123.0.0
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/64andHlaOctetPair, 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 | 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
- Fora.Abstractions (>= 20261123.0.0)
- Fora.Telemetry (>= 20261123.0.0)
- Google.Protobuf (>= 3.34.1)
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.