Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ public ByteBufferSerializer() {
ByteBuffer readValue(final ByteBuf buffer, final GraphBinaryReader context) throws SerializationException {
final ByteBuffer bb = ByteBuffer.allocate(buffer.readInt());
buffer.readBytes(bb);
bb.rewind();
return bb;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ public static Collection input() throws Exception {
new Object[] {"Binding", new Bytecode.Binding<>("x", 123), null},
new Object[] {"Traverser", new DefaultRemoteTraverser<>("marko", 100), null},
new Object[] {"Class", Bytecode.class, null},
new Object[] {"ByteBuffer", ByteBuffer.allocate(8).putLong(123456), null},
new Object[] {"ByteBuffer", ByteBuffer.wrap(new byte[]{ 1, 2, 3 }), null},
new Object[] {"InetAddressV4", InetAddress.getByName("localhost"), null},
new Object[] {"InetAddressV6", InetAddress.getByName("::1"), null},
new Object[] {"Lambda0", Lambda.supplier("return 1"), null},
Expand Down