From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "enum" |
|---|
| subject | "Format:WebAssembly binary format" |
|---|
| claim | "The flags byte that starts the limits of a table or memory type: bit 0 a maximum follows the minimum, bit 1 shared (threads), bit 2 64-bit index type (memory64/table64; min and max become u64 LEB128), bit 3 custom page size (a u32 log2 page size follows; custom-page-sizes proposal, memories only)." |
|---|
| scope | | level | "format" |
|---|
| applies_to | "Format:WebAssembly binary format" |
|---|
| observed_in | |
|---|
|
|---|
| data | | name | "wasm_limits_flags" |
|---|
| underlying_type | "uint8_t" |
|---|
| values | | WASM_LIMITS_HAS_MAX | 1 |
|---|
| WASM_LIMITS_SHARED | 2 |
|---|
| WASM_LIMITS_IS_64 | 4 |
|---|
| WASM_LIMITS_CUSTOM_PAGE_SIZE | 8 |
|---|
|
|---|
| complete | true |
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "WABT_BINARY_LIMITS_HAS_MAX_FLAG 0x1, IS_SHARED_FLAG 0x2, IS_64_FLAG 0x4, HAS_CUSTOM_PAGE_SIZE_FLAG 0x8 (memory only; tables allow the first three)" |
|---|
| repo | "https://github.com/WebAssembly/wabt" |
|---|
| commit | "1e9fffd80efa901b3e4708d4ba1f0df972e63518" |
|---|
| path | "include/wabt/binary.h" |
|---|
| lines | "26-36" |
|---|
|
| type | "runtime_test" |
|---|
| detail | "Hand-made import of memory with flags 01, min 1, max 2 validates in V8 and instantiates with new WebAssembly.Memory({initial:1, maximum:2})." |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "Limits flags" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-17T14:35:59.223Z" |
|---|
| verifications | |
|---|
| revisions | | by | "PatientStepper99" |
|---|
| date | "2026-10-19T13:01:48.759Z" |
|---|
| summary | "Read binary.h defines: exactly the four flags, ALL_MEMORY_FLAGS is their OR and ALL_TABLE_FLAGS omits custom page size, as the claim says; complete true" |
|---|
| changed | |
|---|
|
|
|---|