202203204205206207208209210211212
} else { packer.writeArrayBegin(v.size()); for (Object o : v) { packer.write(o); } packer.writeArrayEnd(); } byte[] bytes = packer.toByteArray(); Unpacker unpacker = msgpack.createUnpacker(new ByteArrayInputStream(bytes)); if (unpacker.trySkipNil()) { assertEquals(null, v);
201202203204205206207208209210211
} else { packer.writeArrayBegin(v.size()); for (Object o : v) { packer.write(o); } packer.writeArrayEnd(); } byte[] bytes = packer.toByteArray(); BufferUnpacker unpacker = msgpack.createBufferUnpacker(bytes); if (unpacker.trySkipNil()) { assertEquals(null, v);
226227228229230231232233234235236
241242243244245246247248249250251
} else { packer.writeArrayBegin(v.size()); for (Object o : v) { packer.write(o); } packer.writeArrayEnd(); } byte[] bytes = out.toByteArray(); Unpacker unpacker = msgpack.createBufferUnpacker(bytes); if (unpacker.trySkipNil()) { assertEquals(null, v);
} else { packer.writeArrayBegin(v.size()); for (Object o : v) { packer.write(o); } packer.writeArrayEnd(); } byte[] bytes = out.toByteArray(); Unpacker unpacker = msgpack.createUnpacker(new ByteArrayInputStream(bytes)); if (unpacker.trySkipNil()) { assertEquals(null, v);
210211212213214215216217218219220
} else { packer.writeArrayBegin(v.size()); for (Object o : v) { packer.write(o); } packer.writeArrayEnd(); } ByteArrayInputStream in = new ByteArrayInputStream(out.toByteArray()); Unpacker unpacker = msgpack.createUnpacker(in); if (unpacker.trySkipNil()) { assertEquals(null, v);
239240241242243244245246247248249
} else { packer.writeArrayBegin(v.size()); for (Object o : v) { packer.write(o); } packer.writeArrayEnd(); } byte[] bytes = out.toByteArray(); BufferUnpacker unpacker = msgpack.createBufferUnpacker(bytes); if (unpacker.trySkipNil()) { assertEquals(null, v);
214215216217218219220221222223224
198199200201202203204205206207208
} else { packer.writeArrayBegin(v.size()); for (Object o : v) { packer.write(o); } packer.writeArrayEnd(); } Value r = packer.getResult(); Converter unpacker = new Converter(msgpack, r); if (unpacker.trySkipNil()) { assertEquals(null, v);