Title: Support unpacking HeapByteBfuferR · Issue #861 · msgpack/msgpack-java · GitHub
Open Graph Title: Support unpacking HeapByteBfuferR · Issue #861 · msgpack/msgpack-java
X Title: Support unpacking HeapByteBfuferR · Issue #861 · msgpack/msgpack-java
Description: Currently MessagePack.newDefaultUnpacker(ByteBuffer buffer) doesn't support HeapByteBuffer When passing Read Only ByteBuffer, following exception happened. Because HeapByteBfuferR.hashArray() and HeapByteBfuferR.isDirect() returns false....
Open Graph Description: Currently MessagePack.newDefaultUnpacker(ByteBuffer buffer) doesn't support HeapByteBuffer When passing Read Only ByteBuffer, following exception happened. Because HeapByteBfuferR.hashArray() and H...
X Description: Currently MessagePack.newDefaultUnpacker(ByteBuffer buffer) doesn't support HeapByteBuffer When passing Read Only ByteBuffer, following exception happened. Because HeapByteBfuferR.hashArray() a...
Opengraph URL: https://github.com/msgpack/msgpack-java/issues/861
X: @github
Domain: redirect.github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Support unpacking HeapByteBfuferR","articleBody":"Currently `MessagePack.newDefaultUnpacker(ByteBuffer buffer)` doesn't support HeapByteBuffer\r\n\r\nWhen passing Read Only ByteBuffer, following exception happened. Because `HeapByteBfuferR.hashArray()` and `HeapByteBfuferR.isDirect()` returns false.\r\n```\r\nthrow new IllegalArgumentException(\"Only the array-backed ByteBuffer or DirectBuffer is supported\");\r\n```\r\nhttps://github.com/msgpack/msgpack-java/blob/main/msgpack-core/src/main/java/org/msgpack/core/buffer/MessageBuffer.java#L400\r\n\r\nI want to unpacking HeapByteBufferR without copying bytes. Because I save msgpack data in BigTable, and BigTable library returns ByteString, and it only able to be no-copy converted to HeapByteBufferR with `asReadOnlyByteBuffer()`.","author":{"url":"https://github.com/takaaki7","@type":"Person","name":"takaaki7"},"datePublished":"2024-12-08T08:09:56.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/861/msgpack-java/issues/861"}
| 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:48acd796-85a5-235b-1c6d-6f22d0faa0b6 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D4B0:1BA1D0:25F0BA6:336931F:6A539C87 |
| html-safe-nonce | 3e1e76e624f79215983c412d63eda261b06d0d1047b756ba4531a9568448e4a4 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENEIwOjFCQTFEMDoyNUYwQkE2OjMzNjkzMUY6NkE1MzlDODciLCJ2aXNpdG9yX2lkIjoiNzYzNjc1OTAyMTU0MjkzOTc4MyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 88e50c867ae7a7cd5eff811f2a176f7c977e6a222baae0ec12b3accd4cab3d79 |
| hovercard-subject-tag | issue:2725042665 |
| 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-java/861/issue_layout |
| twitter:image | https://opengraph.githubassets.com/73bad45edfbe65d83ad8ef68905f32be4e1e28be587ca87184a7f6b75b7fa542/msgpack/msgpack-java/issues/861 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/73bad45edfbe65d83ad8ef68905f32be4e1e28be587ca87184a7f6b75b7fa542/msgpack/msgpack-java/issues/861 |
| og:image:alt | Currently MessagePack.newDefaultUnpacker(ByteBuffer buffer) doesn't support HeapByteBuffer When passing Read Only ByteBuffer, following exception happened. Because HeapByteBfuferR.hashArray() and H... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | takaaki7 |
| hostname | github.com |
| expected-hostname | github.com |
| None | b9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb |
| turbo-cache-control | no-preview |
| go-import | github.com/msgpack/msgpack-java git https://github.com/msgpack/msgpack-java.git |
| octolytics-dimension-user_id | 198264 |
| octolytics-dimension-user_login | msgpack |
| octolytics-dimension-repository_id | 1971346 |
| octolytics-dimension-repository_nwo | msgpack/msgpack-java |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1971346 |
| octolytics-dimension-repository_network_root_nwo | msgpack/msgpack-java |
| 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 | 07a982c1d40157c619b364352b704c3ce66bb332 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width