@Override public void process( @NotNull final Bytes in, @NotNull final Bytes out, final SessionDetailsProvider sessionDetails) { if (in.readRemaining() == 0) return; // System.out.println("P start " + in.toDebugString()); long toWrite = Math.min(in.readRemaining(), out.writeRemaining()); out.write( (net.openhft.chronicle.bytes.BytesStore) in, (long) in.readPosition(), (long) toWrite); in.readSkip(toWrite); // System.out.println("... P End " + in.toDebugString()); }