From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "struct" |
|---|
| subject | "Library:Libogg" |
|---|
| claim | "libogg's ogg_stream_state, encode/decode state of one logical stream (ogg_stream_*), is 0x198 bytes on LP64 (Linux/macOS 64-bit) (long = 8 bytes)." |
|---|
| scope | | level | "library" |
|---|
| applies_to | "Library:Libogg" |
|---|
| observed_in | |
|---|
|
|---|
| data | | name | "ogg_stream_state" |
|---|
| size | "0x198" |
|---|
| abi | "lp64" |
|---|
| alignment | 8 |
|---|
| fields | | offset | "0x0" |
|---|
| size | 8 |
|---|
| type | "unsigned char *" |
|---|
| name | "body_data" |
|---|
|
| offset | "0x8" |
|---|
| size | 8 |
|---|
| type | "long" |
|---|
| name | "body_storage" |
|---|
|
| offset | "0x10" |
|---|
| size | 8 |
|---|
| type | "long" |
|---|
| name | "body_fill" |
|---|
|
| offset | "0x18" |
|---|
| size | 8 |
|---|
| type | "long" |
|---|
| name | "body_returned" |
|---|
|
| offset | "0x20" |
|---|
| size | 8 |
|---|
| type | "int *" |
|---|
| name | "lacing_vals" |
|---|
|
| offset | "0x28" |
|---|
| size | 8 |
|---|
| type | "ogg_int64_t *" |
|---|
| name | "granule_vals" |
|---|
|
| offset | "0x30" |
|---|
| size | 8 |
|---|
| type | "long" |
|---|
| name | "lacing_storage" |
|---|
|
| offset | "0x38" |
|---|
| size | 8 |
|---|
| type | "long" |
|---|
| name | "lacing_fill" |
|---|
|
| offset | "0x40" |
|---|
| size | 8 |
|---|
| type | "long" |
|---|
| name | "lacing_packet" |
|---|
|
| offset | "0x48" |
|---|
| size | 8 |
|---|
| type | "long" |
|---|
| name | "lacing_returned" |
|---|
|
| offset | "0x50" |
|---|
| size | 282 |
|---|
| type | "unsigned char[282]" |
|---|
| name | "header" |
|---|
|
| offset | "0x16c" |
|---|
| size | 4 |
|---|
| type | "int" |
|---|
| name | "header_fill" |
|---|
|
| offset | "0x170" |
|---|
| size | 4 |
|---|
| type | "int" |
|---|
| name | "e_o_s" |
|---|
|
| offset | "0x174" |
|---|
| size | 4 |
|---|
| type | "int" |
|---|
| name | "b_o_s" |
|---|
|
| offset | "0x178" |
|---|
| size | 8 |
|---|
| type | "long" |
|---|
| name | "serialno" |
|---|
|
| offset | "0x180" |
|---|
| size | 8 |
|---|
| type | "long" |
|---|
| name | "pageno" |
|---|
|
| offset | "0x188" |
|---|
| size | 8 |
|---|
| type | "ogg_int64_t" |
|---|
| name | "packetno" |
|---|
|
| offset | "0x190" |
|---|
| size | 8 |
|---|
| type | "ogg_int64_t" |
|---|
| name | "granulepos" |
|---|
|
|
|---|
| endianness | "native" |
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "structure definitions; offsets computed for the ABI (long = 4 bytes on Win64, 8 on LP64, pointers and int64 8-byte aligned)" |
|---|
| repo | "https://github.com/xiph/ogg" |
|---|
| commit | "06a5e0262cdc28aa4ae6797627a783b5010440f0" |
|---|
| path | "include/ogg/ogg.h" |
|---|
| lines | "52-84" |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "ogg_stream_state (lp64)" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-17T20:48:58.592Z" |
|---|
| verifications | | operator | "PatientStepper99" |
|---|
| date | "2026-10-19T17:26:30.568Z" |
|---|
| result | "confirmed" |
|---|
| method | "Read ogg_stream_state in ogg.h at the cited commit and recomputed LP64 offsets by hand: ten 8-byte members to 0x50, header[282] to 0x16A, header_fill 0x16C, e_o_s 0x170, b_o_s 0x174, serialno 0x178, pageno 0x180, packetno 0x188, granulepos 0x190, size 0x198." |
|---|
|
|
|---|
| revisions | | by | "PatientStepper99" |
|---|
| date | "2026-10-19T12:40:31.802Z" |
|---|
| summary | "Set byte order native: libogg API struct in process memory." |
|---|
| changed | |
|---|
|
|
|---|