feat(libSceJxr): implement the linked-list WMPStream #15771
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/15771"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by alvaroelpob on 2026-11-04T13:49:45Z.
What
Implements the libSceJxr list stream exports, CreateWS_List, CloseWS_List, ReadWS_List, WriteWS_List, SetPosWS_List and GetPosWS_List, as in jxrlib's strcodec.c. The stream keeps 4 KiB guest-heap packets chained through next-packet pointers, and jxrlib's bounds checks are kept as written.
Tested
Full suite on 715a2a2b57 (Linux): 3883/3883 passed, including the new guest_jxr_list_stream test. It covers writes that fill and link packets, jxrlib's capacity and wrap checks, a failed packet allocation and its retry, reads across packets up to the capacity clamp and past the last packet, seeks inside and beyond the chain, positions, closing a multi-packet stream, and CreateWS_List's layout, slots and allocation failure, with a round trip through the slots. check_conventions passes.
Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)