mirror of
https://github.com/msgpack/msgpack-c.git
synced 2025-03-19 13:02:13 +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 {
|
public MediaContent deserialize(byte[] array) throws Exception {
|
||||||
Unpacker pac = new Unpacker();
|
Unpacker pac = new Unpacker();
|
||||||
pac.feed(array);
|
pac.wrap(array);
|
||||||
MediaContent obj = new MediaContent();
|
MediaContent obj = new MediaContent();
|
||||||
obj.messageUnpack(pac);
|
obj.messageUnpack(pac);
|
||||||
return obj;
|
return obj;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user