byte[] b, int offset){
if(readIndex<minIndex){
throw new BufferUnderflowException();
}
if(readIndex>=index){
throw new BufferOverflowException();
}
int k=(int)(readIndex%bufferSize);
readBuffer.position(k*streamMaxSize+readOffset);
int l=lengths[k];
if(readLength<0){
l-=readOffset;
readBuffer.get(b,offset,l);
}
else{
if(l-readOffset<readLength){
throw new BufferOverflowException();
}
l=readLength;
readBuffer.get(b,offset,l);
}