mirror of
https://github.com/msgpack/msgpack-c.git
synced 2025-10-15 07:14:48 +02:00
java: add Unpacker.wrap method
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user