feat(libSceNpCppWebApi): implement Common::Binary as the module does #12808
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/12808"
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 edubox on 2026-10-29T10:12:02Z.
What
Common::Binarynow follows the module bundled with PPSA21564/PPSA23732 (buildsJ03093737/J03341606).Binary::sizeandBinary::getBinarywereNotImplemented_nid_no_patchstubs, although 17 dumps import them; the rest of the class was not exported.The layout is the same 0x20-byte shape as
Common::String:+0x00+0x08+0x10+0x18LibContext*Implemented exports, with the module addresses used as the contract:
Binary::Binary(LibContext*)0x15600Binary::~Binary/clear0x15630/0x15670Binary::intrusive_ptr_add_ref/sub_ref0x156b0/0x156c0Binary::getBinary/size0x156d0/0x156e0+0x08/+0x10Binary::setBinary(void const*, unsigned long)0x156f00x80553504on allocation failureBinary::appendBinary(void const*, unsigned long)0x157700x80553504on allocation failureAllocation uses the host allocator, the same limitation already documented for
Common::String;setBinary/appendBinaryreturn0x80553503for a null source with a non-zero size, which the module does not check.Tested
Linux x86-64, GCC 16.2.1, Release with
BUILD_TESTING=ON, based onmainf99d7fece3:ctest --test-dir build -R '^guest_np_cpp_web_api': 8/8 passed, including the newguest_np_cpp_web_api_binary(constructor/destructor, set/append/clear, null-source guards, reference counts and guard bytes).python3 tools/check_conventions.py --base origin/mainpasses.python3 tools/pr_overlap.py --branch feat/npcpp-common-binary --jobs 32reports no pull request implementing these exports.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)