diff options
| author | cxchhh <35392417+cxchhh@users.noreply.github.com> | 2026-11-22 06:34:55 +0000 |
|---|---|---|
| committer | cxchhh <35392417+cxchhh@users.noreply.github.com> | 2026-11-22 06:34:55 +0000 |
| commit | eabcb993a752959305fb48f1c70c0c799f1213bf (patch) | |
| tree | 6c441ee2dbdb06883fc54830821346c342e31c7f /runtime/test/loader_test.cpp | |
| parent | 48ad23f0262452b6c3d09db98941bfedb8e9684d (diff) | |
psin_data: decode PSIN instance data through the LSCH schema (PROC-46)
The region between the PSIN header and LSCH is a block table plus its data
blocks: 16-byte rows {u32 type, u32 size, 0xaa x 8}, 8 bytes of 0x70 padding,
then the blocks, each 16-byte aligned, ending exactly at the first section.
LRSC's 0DRP header names the root block at +0x10. Pointers are u64 with the
block number in the low 20 bits and the byte offset above.
tools/psin_data.py walks every value reachable from the root (embedded
structs, struct and string pointers, the 0x5c/0x52/0x54/0x50 arrays, the 0x71
binary map, the 0x75 SwissTable and the 0x73 open-addressed table, the 16-byte
0x44 string with its in-place form) and reports counts and checks only.
Unknown member types are counted and skipped.
Over the 17,507 complete containers with LSCH and LRSC in package 1.0.2.1 the
block tables fill the region 17,507 times and the walk reaches 129,100,004 of
129,117,812 block bytes (99.986%). The rest is behind the three member types
it does not decode (0x5a, 0x76, 0x77).
docs/psin.md gets an "Instance data" section. The header's +8 "version" and
+12 "hash table bytes" are the first block-table row: 22 is a 0x16 block,
found on 1,010 of 18,640 streams. The type-code readings the instance data
confirms are updated.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'runtime/test/loader_test.cpp')
0 files changed, 0 insertions, 0 deletions