I don't think so, because if the remaining of the buffer cannot fit at least one row, it needs to tell the Java side where serialization ended so that the Java side knows how many bytes to send out.