private void sendTo(OutputStream out, ByteBuffer outBuf, ByteBuffer inBuf) throws IOException {
    size -= writeByteBufferToStream(out, outBuf, inBuf);
  }
Write the contents of this stream to the specified stream using outBuf if a buffer is needed.
geode-core/src/main/java/org/apache/geode/internal/HeapDataOutputStream.java