Repository navigation
Add copied IBuffer byte conversions - #129
Merged
Merged
Conversation
Add shared safe copying through IBufferByteAccess and expose copied byte-container APIs for Python, JavaScript, and generated wrappers. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 877667c9-bbc4-4950-b7d3-d03826a19853
Mixed-language test coverageWorkflow status: ✅ Passed
|
Use a typed exact-IID QueryInterface cast so malformed successful queries with null outputs return E_POINTER before pointer adoption or vtable access. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 877667c9-bbc4-4950-b7d3-d03826a19853
Shawn Yuan (shuaiyuanxx)
approved these changes
Sep 3, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Windows.Storage.Streams.IBuffer, includingLength/Capacityvalidation and an exact typedIBufferByteAccesscastQueryInterfacesuccess with a null output asE_POINTERbefore pointer adoption or vtable accessbytes/bytearrayand JavaScriptBuffer/Uint8Array, with generated wrapper methods, declarations, and stubsUInt8[]behavior and keep Classic COM models and public APIs separateValidation
cargo test -p dynwinrt: 266 passed, 1 ignoredcargo test -p dynwinrt-codegen: 478 passed across all test targets, including generatedtsc --noEmitpython -m pytest bindings\py\tests: 133 passedcargo fmt --all -- --checkpassedcargo clippy -p dynwinrt -p dynwinrt-codegen --all-targets -- -D warningswas also run; it remains blocked by existing repository-wide warnings outside the added code under the current Rust toolchain.Closes #123