Home | History | Annotate | Download | only in src

Lines Matching full:size

63     size_t                  size;
106 size: size of buffer.
109 FileBufferFrame* CreateFileBufferFrame(size_t size, unsigned char *buffer)
120 fb->size = size;
128 if ((fb->buffer = (unsigned char *)MALLOC(size, "FileBufferFrame Buffer")) == NULL)
174 int size;
223 while (pCurRec->size > 0 && strcmp(pCurRec->name, fname) != 0)
226 start += pCurRec->size;
240 if (pCurRec->size == 0)
247 size = pCurRec->size;
258 end = size = FILEBUFFERSIZE;
288 PortFile->startFrame = CreateFileBufferFrame(size, (unsigned char *)start);
312 if (end > curFrame->size)
315 passert(end > curFrame->size);
316 end -= curFrame->size;
328 PortFile->size = size;
347 if (PortFile->size > 0 &&
368 pCurRec->size = 0;
384 size_t PortFread(void *buffer, size_t size, size_t count, PORT_FILE PortFile)
387 int cbRemain = size * count;
404 if (PortFile->curPos == curFrame->buffer + curFrame->size) /* end of this frame */
414 cbAvail = curFrame->size - (PortFile->curPos - curFrame->buffer);
432 swap_byte_order((char *)buffer, count, size);
436 return count - cbRemain / size;
442 size_t PortFwrite(const void *data, size_t size, size_t count, PORT_FILE PortFile)
444 int cbWrite = size * count;
464 if (PortFile->curPos == curFrame->buffer + curFrame->size) /* end of this frame */
480 PortFile->size += FILEBUFFERSIZE;
484 return count -cbWrite / size;
492 cbAvail = curFrame->size - (PortFile->curPos - curFrame->buffer);
547 if (PortFile->curPos == curFrame->buffer + curFrame->size) /* end of this frame */
559 cbAvail = curFrame->size - (PortFile->curPos - curFrame->buffer);
578 PortFile->curPos = curFrame->buffer + curFrame->size;
596 int size;
601 /* current Frame size */
602 size = PortFile->curPos - curFrame->buffer;
604 /* previous frame size */
606 size += curFrame->size;
608 return size;
734 pCurRec->end = PortFile->size - PortFile->endFrame->size +
736 pCurRec->size = PortFile->size;
743 while (pCurRec->size > 0);
859 int size;
890 while ((size = PortFread(data, 1, 256, PortFile)) > 0)
892 fwrite(data, 1, size, fp);
907 int size;
931 while ((size = fread(data, 1, 256, fp)) > 0)
932 PortFwrite(data, 1, size, PortFile);