mBuf = buf;
if (!mBuf.hasRemaining()) { return -1; } return mBuf.get() & 0xFF;
if (!mBuf.hasRemaining()) { return -1; } len = Math.min(len, mBuf.remaining()); mBuf.get(bytes, off, len); return len;