Decodes a number version into a semantic version string using bitwise operations. The decoding unpacks the major version from the high byte and the minor version from the low byte:
decoded = ${(version >> 8) & 0xff}.${(version & 0xff)}
${(version >> 8) & 0xff}.${(version & 0xff)}
Examples: '259' => 0x0103 (1.3) '19712' => 0x4d00 (77.0)
Semantic version string (e.g., "1.3"). Returns "0.0" if decoding fails.
Bitwise encoded version as a number.
Generated using TypeDoc
Decodes a number version into a semantic version string using bitwise operations. The decoding unpacks the major version from the high byte and the minor version from the low byte:
decoded =
${(version >> 8) & 0xff}.${(version & 0xff)}Examples: '259' => 0x0103 (1.3) '19712' => 0x4d00 (77.0)
Returns
Semantic version string (e.g., "1.3"). Returns "0.0" if decoding fails.