-
Notifications
You must be signed in to change notification settings - Fork 325
Support unpacking HeapByteBfuferR #861
Copy link
Copy link
Open
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.
throw new IllegalArgumentException("Only the array-backed ByteBuffer or DirectBuffer is supported");
I 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().
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels