code: public ByteBuffer getBuffer() {
          assert(isDirect == false);
          assert(buffer.b().hasArray());
          assert(!buffer.b().isDirect());
          buffer.b().flip();
          return buffer.b().asReadOnlyBuffer();
      }
docs: Return a readOnly slice of this buffer. Flips the internal buffer.
  May not be, usefully, invoked multiple times on the same internal
  state.
  
  Only use this if using a non-direct ByteBuffer!