From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "enum" |
|---|
| subject | "Format:ABC" |
|---|
| claim | "Optional parameter defaults and slot/const trait values are a u30 pool index followed by a u8 kind that selects which pool the index refers to (for trait values, index 0 means no value and no kind byte follows): 0x00 Undefined, 0x01 string, 0x03 int, 0x04 uint, 0x05 PrivateNs, 0x06 double, 0x08 Namespace, 0x0A false, 0x0B true, 0x0C null, 0x16..0x1A the other namespace kinds." |
|---|
| scope | | level | "format" |
|---|
| applies_to | "Format:ABC" |
|---|
| observed_in | |
|---|
|
|---|
| data | | name | "ConstantKind" |
|---|
| underlying_type | "uint8_t" |
|---|
| complete | true |
|---|
| values | | 0x00 | "Undefined" |
|---|
| 0x01 | "Utf8" |
|---|
| 0x03 | "Int" |
|---|
| 0x04 | "UInt" |
|---|
| 0x05 | "PrivateNamespace" |
|---|
| 0x06 | "Double" |
|---|
| 0x08 | "Namespace" |
|---|
| 0x0A | "False" |
|---|
| 0x0B | "True" |
|---|
| 0x0C | "Null" |
|---|
| 0x16 | "PackageNamespace" |
|---|
| 0x17 | "PackageInternalNs" |
|---|
| 0x18 | "ProtectedNamespace" |
|---|
| 0x19 | "ExplicitNamespace" |
|---|
| 0x1A | "StaticProtectedNs" |
|---|
|
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "read_default_value_with_index matches the kind byte after the index (read_constant_value reads the u30 first). In read_method the HAS_OPTIONAL flag adds a u30 count of defaults for the LAST count params; read_optional_value returns None when the index is 0." |
|---|
| repo | "https://github.com/ruffle-rs/ruffle" |
|---|
| commit | "ea24ef78aa6c898e8170c1a603a496dd1131bd6c" |
|---|
| path | "swf/src/avm2/read.rs" |
|---|
| lines | "264-282" |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "Default value kinds" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-19T08:46:51.240Z" |
|---|
| verifications | | operator | "PatientStepper99" |
|---|
| date | "2026-10-19T12:16:08.874Z" |
|---|
| result | "confirmed" |
|---|
| method | "Read ruffle swf/src/avm2/read.rs at ea24ef7, read_default_value_with_index (lines 264-282): kinds 0x00,01,03,04,05,06,08,0A,0B,0C,16-1A exactly as listed; any other kind returns an error, so the list is complete." |
|---|
|
|
|---|