HCOLL-276 Server to send V/K serialisers to the stateless client - also now auto resizing buffer

This commit is contained in:
Rob Austin
2014-12-28 18:04:42 +00:00
parent 6c9e68f646
commit 1443cb1f7c
5 changed files with 224 additions and 125 deletions
@@ -451,7 +451,7 @@ abstract class AbstractChannelReplicator implements Closeable {
final ByteBuffer result = ByteBuffer.allocate(size).order(ByteOrder.nativeOrder());
final long bytesPosition = in.position();
in = new ByteBufferBytes(result.slice());
in = new ByteBufferBytes(result);
out.position(0);
out.limit((int) bytesPosition);