DotNext.IO by .NET Foundation and Contributors

<PackageReference Include="DotNext.IO" Version="3.3.0" />

 LengthFormat

public enum LengthFormat
Describes how the length of the octet string should be encoded in binary form.

Use 7-bit encoded compressed integer value to represent octet string length.

Plain = 0

Use 32-bit integer value to represent octet string length using native endianness.

Use 32-bit integer value to represent octet string length using big-endian byte order.

Use 32-bit integer value to represent octet string length using little-endian byte order.