public byte[] readRawBytes(final int size) throws IOException {
  final int pos=bufferPos;
  if (size <= (bufferSize - pos) && size > 0) {
    bufferPos=pos + size;
    return Arrays.copyOfRange(buffer,pos,pos + size);
  }
 else {
    return readRawBytesSlowPath(size);
  }
}

public byte [ ] readRawBytes ( final int size ) throws IOException { final int pos = bufferPos ; if ( size <= ( bufferSize - pos ) && size > 0 ) { bufferPos = pos + size ; return Arrays . copyOfRange ( buffer , pos , pos + size ) ; } else { return readRawBytesSlowPath ( size ) ; } }
read a fixed size of bytes from the input .
