Module:CRC 32 ISO HDLC/doc: Difference between revisions

From Resonite Wiki
Created page with "The CRC32 ISO HDLC algorithm is used by FrooxEngine to derive the color of an unknown C# type in ProtoFlux. This is done by computing the CRC of the type's name (without generic parameters, if any). Example: <code>crc32("IAsset") = {{#invoke:CRC_32_ISO_HDLC|crc32_hex|IAsset}}</code> (check: <code>9CD97842</code>)"
 
Documentation
 
Line 1: Line 1:
The CRC32 ISO HDLC algorithm is used by FrooxEngine to derive the color of an unknown C# type in ProtoFlux. This is done by computing the CRC of the type's name (without generic parameters, if any).
The CRC32 ISO HDLC algorithm is used by FrooxEngine to derive the color of an unknown C# type in ProtoFlux. This is done by computing the CRC of the type's name (without generic parameters, if any).
{| class="wikitable" style="margin:auto"
|+ Invokable Functions
|-
! Function !! Purpose !! Example
|-
| <code>crc32_hex</code> || Computes the hexadecimal CRC32 checksum of the given string || <code>&#123;&#123;#invoke:CRC_32_ISO_HDLC&#124;crc32_hex&#124;IAsset}}</code>
|}
The following functions are exported, but not invokable by Media Wiki.
{| class="wikitable" style="margin:auto"
|+ Other Functions
|-
! Function !! Purpose !! Example
|-
| <code>crc32</code> || Computes the CRC32 checksum of the given string || <code>crc32("IAsset")</code>
|}


Example: <code>crc32("IAsset") = {{#invoke:CRC_32_ISO_HDLC|crc32_hex|IAsset}}</code> (check: <code>9CD97842</code>)
Example: <code>crc32("IAsset") = {{#invoke:CRC_32_ISO_HDLC|crc32_hex|IAsset}}</code> (check: <code>9CD97842</code>)

Latest revision as of 19:36, 9 February 2024

The CRC32 ISO HDLC algorithm is used by FrooxEngine to derive the color of an unknown C# type in ProtoFlux. This is done by computing the CRC of the type's name (without generic parameters, if any).

Invokable Functions
Function Purpose Example
crc32_hex Computes the hexadecimal CRC32 checksum of the given string {{#invoke:CRC_32_ISO_HDLC|crc32_hex|IAsset}}

The following functions are exported, but not invokable by Media Wiki.

Other Functions
Function Purpose Example
crc32 Computes the CRC32 checksum of the given string crc32("IAsset")

Example: crc32("IAsset") = 9CD97842 (check: 9CD97842)