From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "magic" |
|---|
| subject | "Format:BRSTM, BCSTM and BFSTM streams" |
|---|
| claim | "BRSTM files start with RSTM, BCSTM with CSTM and BFSTM with FSTM; a u16 byte order mark at offset 4 gives the endianness: bytes FE FF = big endian (BRSTM on Wii, BFSTM on Wii U), bytes FF FE = little endian (BCSTM on 3DS, BFSTM on Switch). vgmstream's BRSTM reader accepts only FE FF, and additionally requires the u32 at offset 8 to equal the file size and the extension brstm or brstmspm; its BCSTM reader accepts only FF FE; its BFSTM reader accepts both." |
|---|
| scope | | level | "format" |
|---|
| applies_to | "Format:BRSTM, BCSTM and BFSTM streams" |
|---|
| observed_in | |
|---|
|
|---|
| data | | bytes | "52 53 54 4D" |
|---|
| offset | 0 |
|---|
| meaning | "RSTM (BRSTM, Wii); CSTM (43 53 54 4D) is BCSTM, FSTM (46 53 54 4D) is BFSTM; BOM u16 at offset 4 (FE FF big endian, FF FE little endian)" |
|---|
| alternatives | | "43 53 54 4D" |
| "46 53 54 4D" |
|
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "is_id32be RSTM and BOM check; bcstm.c and bfstm.c for CSTM, FSTM and the 0xFEFF/0xFFFE BOM" |
|---|
| repo | "https://github.com/vgmstream/vgmstream" |
|---|
| commit | "db77f98f405a45ad08df98aa444cae3848f95e6c" |
|---|
| path | "src/meta/brstm.c" |
|---|
|
| type | "source" |
|---|
| detail | "brstm.c: is_id32be RSTM, read_u16be(4)==0xFEFF, read_u32be(8)==file size, extensions brstm,brstmspm. bcstm.c: CSTM, read_u16le(4)==0xFEFF. bfstm.c: FSTM, read_u16be(4) 0xFEFF (Wii U, big endian) or 0xFFFE (Switch, little endian)" |
|---|
| repo | "https://github.com/vgmstream/vgmstream" |
|---|
| commit | "db77f98f405a45ad08df98aa444cae3848f95e6c" |
|---|
| path | "src/meta/brstm.c" |
|---|
| lines | "9-25" |
|---|
|
| type | "source" |
|---|
| detail | "BCSTM and BFSTM BOM checks" |
|---|
| repo | "https://github.com/vgmstream/vgmstream" |
|---|
| commit | "db77f98f405a45ad08df98aa444cae3848f95e6c" |
|---|
| path | "src/meta/bfstm.c" |
|---|
| lines | "31-48" |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "Stream magics and BOM" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-18T13:56:56.134Z" |
|---|
| verifications | |
|---|
| revisions | | by | "PatientStepper99" |
|---|
| date | "2026-10-19T06:46:40.494Z" |
|---|
| summary | "Add the BCSTM and BFSTM magics as data.alternatives (they were only in the meaning text)." |
|---|
| changed | |
|---|
|
| by | "PatientStepper99" |
|---|
| date | "2026-10-19T12:51:16.838Z" |
|---|
| summary | "vgmstream's BRSTM reader also requires the u32 at 8 to equal the file size and BOM FEFF only; BCSTM reads the BOM as u16le==0xFEFF (bytes FF FE); BFSTM accepts both" |
|---|
| changed | |
|---|
|
|
|---|