ocmbytecode
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| ocmbytecode [2023/04/23 15:05] – [Preliminary documentation for "compat" module] nopsled | ocmbytecode [2025/09/21 18:55] (current) – nopsled | ||
|---|---|---|---|
| Line 59: | Line 59: | ||
| ===== Small numbers (tag 0): signed 16 bit numbers ===== | ===== Small numbers (tag 0): signed 16 bit numbers ===== | ||
| - | ===== Large integers (tag 1): arbitraty | + | ===== Large integers (tag 1): arbitary |
| Serialization format: Length followed by two's complement little endian representation. The length is according to ASN.1 lengths: Length is directly encoded as one byte for lengths 0..127. A length encoding starting with 128 is invalid (would mean unspecified). If the first byte of the length is above 128, subtract 128 and take that many bytes. They make up a big-endian unsigned integer. | Serialization format: Length followed by two's complement little endian representation. The length is according to ASN.1 lengths: Length is directly encoded as one byte for lengths 0..127. A length encoding starting with 128 is invalid (would mean unspecified). If the first byte of the length is above 128, subtract 128 and take that many bytes. They make up a big-endian unsigned integer. | ||
| ===== Binary blobs (tag 2) ===== | ===== Binary blobs (tag 2) ===== | ||
ocmbytecode.1682262304.txt.gz · Last modified: 2023/04/23 15:05 by nopsled
