mirror of
https://github.com/msgpack/msgpack-c.git
synced 2025-03-19 04:52:59 +01:00
java: add Unpacker.wrap method
This commit is contained in:
parent
985c31b378
commit
c2525bcc05
@ -59,7 +59,7 @@ public class MessagePackDirectSerializer implements ObjectSerializer<MediaConten
|
||||
|
||||
public MediaContent deserialize(byte[] array) throws Exception {
|
||||
Unpacker pac = new Unpacker();
|
||||
pac.feed(array);
|
||||
pac.wrap(array);
|
||||
MediaContent obj = new MediaContent();
|
||||
obj.messageUnpack(pac);
|
||||
return obj;
|
||||
|
Loading…
x
Reference in New Issue
Block a user