public ByteBuffer getContentBuffer() {
    buffer.flip();
    return buffer;
  }
gets the content ByteBuffer, ready for reading. The stream should not be written to past this
point until it has been reset.
geode-core/src/main/java/org/apache/geode/internal/tcp/MsgOutputStream.java