Lines Matching refs:minSize
388 int cbAvail, minSize; in PortFread() local
416 minSize = cbRemain < cbAvail ? cbRemain : cbAvail; in PortFread()
417 passert(minSize >= 0); in PortFread()
419 cbRemain -= minSize; in PortFread()
420 while (minSize-- > 0) in PortFread()
445 int cbAvail, minSize; in PortFwrite() local
493 minSize = cbWrite < cbAvail ? cbWrite : cbAvail; in PortFwrite()
495 memcpy((char *)PortFile->curPos, buffer, minSize); in PortFwrite()
496 buffer += minSize; in PortFwrite()
497 PortFile->curPos += minSize; in PortFwrite()
501 cbWrite -= minSize; in PortFwrite()
513 int cbAvail, minSize; in PortFseek() local
561 minSize = offset < cbAvail ? offset : cbAvail; in PortFseek()
563 PortFile->curPos += minSize; in PortFseek()
564 offset -= minSize; in PortFseek()
582 minSize = -offset < cbAvail ? -offset : cbAvail; in PortFseek()
584 PortFile->curPos -= minSize; in PortFseek()
585 offset += minSize; in PortFseek()