Title: Allow default handler to take a position parameter by PeterC-DLS · Pull Request #718 · msgpack/msgpack-python · GitHub
Open Graph Title: Allow default handler to take a position parameter by PeterC-DLS · Pull Request #718 · msgpack/msgpack-python
X Title: Allow default handler to take a position parameter by PeterC-DLS · Pull Request #718 · msgpack/msgpack-python
Description: This enables padding to be computed when packing a custom type and enables zero-copy unpacking by aligning primitives correctly. The code in test_default demonstrates correct padding for arrays. This is motivated by passing NumPy's ndarrays with their raw data in bin format to a web frontend where TypedArrays must be correctly aligned otherwise a copy must be taken by slicing the underlying ArrayBuffer (in the @msgpack/msgpack package). Note, the Javascript library gives access to the encoder context for extension types but this is not available for this Python library.
Open Graph Description: This enables padding to be computed when packing a custom type and enables zero-copy unpacking by aligning primitives correctly. The code in test_default demonstrates correct padding for arrays. Th...
X Description: This enables padding to be computed when packing a custom type and enables zero-copy unpacking by aligning primitives correctly. The code in test_default demonstrates correct padding for arrays. Th...
Opengraph URL: https://github.com/msgpack/msgpack-python/pull/718
X: @github
Domain: Github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:feecee1a-cb5d-9154-86fd-4cfde97f8afe |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | B7A6:10D8F2:1158E86:1939F48:6A633C62 |
| html-safe-nonce | 9a0674b516616734bd3a740e6e5dcb2721ecae94560bb550dabe37f710929531 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCN0E2OjEwRDhGMjoxMTU4RTg2OjE5MzlGNDg6NkE2MzNDNjIiLCJ2aXNpdG9yX2lkIjoiODQ0NDUyOTU2NTc4NDYyODE4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 0233bdb3f05c3ad25a614138b9c4fccf5eeb2f7d57921c95aa2335eac41353d3 |
| hovercard-subject-tag | pull_request:4098277360 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,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/msgpack/msgpack-python/pull/718/files |
| twitter:image | https://avatars.githubusercontent.com/u/1381719?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/1381719?s=400&v=4 |
| og:image:alt | This enables padding to be computed when packing a custom type and enables zero-copy unpacking by aligning primitives correctly. The code in test_default demonstrates correct padding for arrays. Th... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 59e55daad7174ca59d63c6974d58276ccb5477442e550bebb3c035e1bef11c94 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/msgpack/msgpack-python git https://github.com/msgpack/msgpack-python.git |
| octolytics-dimension-user_id | 198264 |
| octolytics-dimension-user_login | msgpack |
| octolytics-dimension-repository_id | 2242705 |
| octolytics-dimension-repository_nwo | msgpack/msgpack-python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 2242705 |
| octolytics-dimension-repository_network_root_nwo | msgpack/msgpack-python |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 990295d92a4cc7b63fbbd83a046217cd7d77d49c |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width