Title: Control offset from extension. · Issue #273 · msgpack/msgpack-javascript · GitHub
Open Graph Title: Control offset from extension. · Issue #273 · msgpack/msgpack-javascript
X Title: Control offset from extension. · Issue #273 · msgpack/msgpack-javascript
Description: Hi. It isn't issue but suggestion\question. I want to have custom implementation of array container deserialization (without legth) (server optimization proposes). To implement it i want to have 2 extensions (e.g. 120 - array start [, an...
Open Graph Description: Hi. It isn't issue but suggestion\question. I want to have custom implementation of array container deserialization (without legth) (server optimization proposes). To implement it i want to have 2 ...
X Description: Hi. It isn't issue but suggestion\question. I want to have custom implementation of array container deserialization (without legth) (server optimization proposes). To implement it i want to hav...
Opengraph URL: https://github.com/msgpack/msgpack-javascript/issues/273
X: @github
Domain: Github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Control offset from extension.","articleBody":"Hi. \nIt isn't issue but suggestion\\question.\n\nI want to have custom implementation of array container deserialization (without legth) (server optimization proposes).\nTo implement it i want to have 2 extensions (e.g. 120 - array start [, and 121 - array end ]).\nSo Can i implement something similar? Can i controll offset of main buffer from extension?\n\nExpectation example: \n\n```\nextensionCodec.register({\n type: 121,\n decode: (data: Uint8Array) =\u003e {\n return {arrayEnd : true};\n },\n});\nextensionCodec.register({\n type: 120,\n decode: (data: Uint8Array) =\u003e {\n const arr = [];\n while(true) {\n let arrayElement = decode(data); // returns some obj with offset shift from main data buffer.\n if(arrayElement?.arrayEnd) break;\n arr.push(arrayElement);\n } \n return arr ;\n },\n});\n```","author":{"url":"https://github.com/crazylexa","@type":"Person","name":"crazylexa"},"datePublished":"2025-03-27T09:08:40.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/273/msgpack-javascript/issues/273"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:74a96efe-38e9-f915-51d4-36b6d48f811a |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D77A:FD3BE:13D2CE5:1C98590:6A633C52 |
| html-safe-nonce | 48fec724d56027d7b0def32164757ea00443fc67ab699aa1b1e6626ce7c369f7 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENzdBOkZEM0JFOjEzRDJDRTU6MUM5ODU5MDo2QTYzM0M1MiIsInZpc2l0b3JfaWQiOiI4MzM1Mjk3MTQ1NDI1MDUwNzA2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 5515d265bb51da72ef7766cccf4c228a7c5da98c1b44d1bfaa8450f27cacf880 |
| hovercard-subject-tag | issue:2952170768 |
| github-keyboard-shortcuts | repository,issues,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/_view_fragments/issues/show/msgpack/msgpack-javascript/273/issue_layout |
| twitter:image | https://opengraph.githubassets.com/9de69290785a3a1658ca1459dfda044157d90516528f9b3dd1ad22d84e37916e/msgpack/msgpack-javascript/issues/273 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/9de69290785a3a1658ca1459dfda044157d90516528f9b3dd1ad22d84e37916e/msgpack/msgpack-javascript/issues/273 |
| og:image:alt | Hi. It isn't issue but suggestion\question. I want to have custom implementation of array container deserialization (without legth) (server optimization proposes). To implement it i want to have 2 ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | crazylexa |
| hostname | github.com |
| expected-hostname | github.com |
| None | 59e55daad7174ca59d63c6974d58276ccb5477442e550bebb3c035e1bef11c94 |
| turbo-cache-control | no-preview |
| go-import | github.com/msgpack/msgpack-javascript git https://github.com/msgpack/msgpack-javascript.git |
| octolytics-dimension-user_id | 198264 |
| octolytics-dimension-user_login | msgpack |
| octolytics-dimension-repository_id | 2761854 |
| octolytics-dimension-repository_nwo | msgpack/msgpack-javascript |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 2761854 |
| octolytics-dimension-repository_network_root_nwo | msgpack/msgpack-javascript |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| 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