From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "behavior" |
|---|
| subject | "Format:ABC" |
|---|
| claim | "The constant pool holds seven arrays in order: ints, uints, doubles, strings, namespaces, namespace sets, multinames. Each starts with a u30 count that includes the implicit entry 0, so count-1 elements follow (a count of 0 is treated as 0 elements). ints are variable-length 32-bit values reinterpreted as signed, uints use the same encoding, doubles are 8-byte little-endian, strings are a u30 byte length plus the bytes (UTF-8, kept as raw bytes)." |
|---|
| scope | | level | "format" |
|---|
| applies_to | "Format:ABC" |
|---|
| observed_in | |
|---|
|
|---|
| data | | trigger | "parsing an ABC constant pool" |
|---|
| effect | "index 0 of every array is implicit (undefined / any / empty), so real entries are numbered from 1" |
|---|
| function | "Reader::read_constant_pool" |
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "read_vec_with_len_sub_1 reads u30 and subtracts 1 with saturating_sub; read_i32 is read_encoded_u32 cast to i32 (lines 89-91); read_string is u30 length then raw bytes (93-98)." |
|---|
| repo | "https://github.com/ruffle-rs/ruffle" |
|---|
| commit | "ea24ef78aa6c898e8170c1a603a496dd1131bd6c" |
|---|
| path | "swf/src/avm2/read.rs" |
|---|
| lines | "187-204" |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "Constant pool reading" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-19T08:46:51.310Z" |
|---|
| verifications | | operator | "PatientStepper99" |
|---|
| date | "2026-10-19T09:34:04.180Z" |
|---|
| result | "confirmed" |
|---|
| method | "Read ruffle swf/src/avm2/read.rs read_constant_pool (187-204) and read_i32/read_string/read_u30 plus swf/src/extensions.rs read_encoded_u32 (up to 5 bytes, 7 bits each) at ea24ef7: order ints, uints, doubles, strings, namespaces, namespace_sets, multinames; count via saturating_sub(1); doubles via read_f64 (little-endian reader macro)." |
|---|
|
|
|---|