Title: Fix `GetBuffer` throwing `ArgumentOutOfRangeException` by legomanww · Pull Request #2120 · pythonnet/pythonnet · GitHub
Open Graph Title: Fix `GetBuffer` throwing `ArgumentOutOfRangeException` by legomanww · Pull Request #2120 · pythonnet/pythonnet
X Title: Fix `GetBuffer` throwing `ArgumentOutOfRangeException` by legomanww · Pull Request #2120 · pythonnet/pythonnet
Description: What does this implement/fix? Explain your changes. PyBuffer throws System.ArgumentOutOfRangeException when trying to use GetBuffer() with anything other than PyBUF.SIMPLE since the Marshal.Copy calls had a typos so it was trying to copy shape, strides, and suboffsets as arrays that were the full length of the source array instead of length ndim. Does this close any currently open issues? no Any other comments? ... Checklist Check all those that are applicable and complete. Make sure to include one or more tests for your change If an enhancement PR, please create docs and at best an example Ensure you have signed the .NET Foundation CLA <- doesn't seem to be working Add yourself to AUTHORS Updated the CHANGELOG
Open Graph Description: What does this implement/fix? Explain your changes. PyBuffer throws System.ArgumentOutOfRangeException when trying to use GetBuffer() with anything other than PyBUF.SIMPLE since the Marshal.Copy ca...
X Description: What does this implement/fix? Explain your changes. PyBuffer throws System.ArgumentOutOfRangeException when trying to use GetBuffer() with anything other than PyBUF.SIMPLE since the Marshal.Copy ca...
Opengraph URL: https://github.com/pythonnet/pythonnet/pull/2120
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/checks(.:format) |
| route-controller | pull_requests |
| route-action | checks |
| fetch-nonce | v2:577ccf33-44f7-e0ed-c1cc-46d068325da8 |
| current-catalog-service-hash | 87dc3bc62d9b466312751bfd5f889726f4f1337bdff4e8be7da7c93d6c00a25a |
| request-id | AFCA:8E09A:3AE54B9:526027D:697131C8 |
| html-safe-nonce | 5045d0f88df52ebad8e1da75899b940a92b7093395cff1990a53170657496573 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBRkNBOjhFMDlBOjNBRTU0Qjk6NTI2MDI3RDo2OTcxMzFDOCIsInZpc2l0b3JfaWQiOiI0NTUzMzc0Mjg0MzA1NzQwMjMyIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 61cc77b2d3277df62b14d85de18c06aca0fc6e94b8191ec9bfe805c154448e7b |
| hovercard-subject-tag | pull_request:1272085968 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,checks,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/pythonnet/pythonnet/pull/2120/checks |
| twitter:image | https://avatars.githubusercontent.com/u/1657590?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/1657590?s=400&v=4 |
| og:image:alt | What does this implement/fix? Explain your changes. PyBuffer throws System.ArgumentOutOfRangeException when trying to use GetBuffer() with anything other than PyBUF.SIMPLE since the Marshal.Copy ca... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 0c91dba94f720b71e069760db74b45f0f69e50caa632dc4e976d5bf46c8242ee |
| turbo-cache-control | no-preview |
| go-import | github.com/pythonnet/pythonnet git https://github.com/pythonnet/pythonnet.git |
| octolytics-dimension-user_id | 6050430 |
| octolytics-dimension-user_login | pythonnet |
| octolytics-dimension-repository_id | 14748123 |
| octolytics-dimension-repository_nwo | pythonnet/pythonnet |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 14748123 |
| octolytics-dimension-repository_network_root_nwo | pythonnet/pythonnet |
| turbo-body-classes | logged-out env-production page-responsive full-width full-width-p-0 |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | e6c1902093917264567791cc30776acd1b2490c9 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width