• Home
  • Raw
  • Download

Lines Matching refs:curPos

305     PortFile->curPos = PortFile->curFrame->buffer;  in PortFopen()
306 PortFile->endPos = PortFile->curPos + end; in PortFopen()
401 if (PortFile->endPos == PortFile->curPos) /* end of file */ in PortFread()
404 if (PortFile->curPos == curFrame->buffer + curFrame->size) /* end of this frame */ in PortFread()
408 PortFile->curPos = curFrame->buffer; in PortFread()
412 cbAvail = PortFile->endPos - PortFile->curPos; in PortFread()
414 cbAvail = curFrame->size - (PortFile->curPos - curFrame->buffer); in PortFread()
421 *bufferPtr++ = *PortFile->curPos++; in PortFread()
424 if (PortFile->curPos == PortFile->endPos) in PortFread()
464 if (PortFile->curPos == curFrame->buffer + curFrame->size) /* end of this frame */ in PortFwrite()
478 PortFile->curPos = PortFile->endPos = nextFrame->buffer; in PortFwrite()
492 cbAvail = curFrame->size - (PortFile->curPos - curFrame->buffer); in PortFwrite()
495 memcpy((char *)PortFile->curPos, buffer, minSize); in PortFwrite()
497 PortFile->curPos += minSize; in PortFwrite()
499 if (curFrame == PortFile->endFrame && PortFile->endPos < PortFile->curPos) in PortFwrite()
500 PortFile->endPos = PortFile->curPos; in PortFwrite()
527 PortFile->curPos = PortFile->endPos; in PortFseek()
531 PortFile->curPos = PortFile->startFrame->buffer; in PortFseek()
544 if (PortFile->endPos <= PortFile->curPos) /* end of file */ in PortFseek()
547 if (PortFile->curPos == curFrame->buffer + curFrame->size) /* end of this frame */ in PortFseek()
554 PortFile->curPos = curFrame->buffer; in PortFseek()
557 cbAvail = PortFile->endPos - PortFile->curPos; in PortFseek()
559 cbAvail = curFrame->size - (PortFile->curPos - curFrame->buffer); in PortFseek()
563 PortFile->curPos += minSize; in PortFseek()
568 if (PortFile->startFrame->buffer == PortFile->curPos) /* start of file */ in PortFseek()
571 if (PortFile->curPos <= curFrame->buffer) /* start of this frame */ in PortFseek()
578 PortFile->curPos = curFrame->buffer + curFrame->size; in PortFseek()
580 cbAvail = PortFile->curPos - curFrame->buffer; in PortFseek()
584 PortFile->curPos -= minSize; in PortFseek()
602 size = PortFile->curPos - curFrame->buffer; in PortFtell()
679 if (PortFile->curPos >= PortFile->endPos) in PortFgets()
685 else if (*PortFile->curPos == '\n') in PortFgets()
692 PortFile->curPos++; in PortFgets()
701 retString[i] = *PortFile->curPos++; in PortFgets()
771 c = (int) * PortFile->curPos++; in PortFgetc()
773 if (PortFile->curPos >= PortFile->endPos) in PortFgetc()
815 PortFile->curPos = PortFile->startFrame->buffer; in PortRewind()