Lines Matching refs:originalSize
101 size_t originalSize = *size; in File_Read() local
102 if (originalSize == 0) in File_Read()
110 DWORD curSize = (originalSize > kChunkSizeMax) ? kChunkSizeMax : (DWORD)originalSize; in File_Read()
114 originalSize -= processed; in File_Read()
121 while (originalSize > 0); in File_Read()
126 *size = fread(data, 1, originalSize, p->file); in File_Read()
127 if (*size == originalSize) in File_Read()
136 size_t originalSize = *size; in File_Write() local
137 if (originalSize == 0) in File_Write()
145 DWORD curSize = (originalSize > kChunkSizeMax) ? kChunkSizeMax : (DWORD)originalSize; in File_Write()
149 originalSize -= processed; in File_Write()
156 while (originalSize > 0); in File_Write()
161 *size = fwrite(data, 1, originalSize, p->file); in File_Write()
162 if (*size == originalSize) in File_Write()