Lines Matching refs:sz
80 int sz; /* Size of the file in bytes */ member
113 g.aFile[i].sz = -1; in formatVfs()
127 if( g.aFile[i].sz<0 ) continue; in reformatVfs()
135 g.aFile[i].sz = -1; in reformatVfs()
165 long sz = 0; in createVFile() local
168 for(i=0; i<MX_FILE && g.aFile[i].sz>=0; i++){} in createVFile()
174 sz = ftell(in); in createVFile()
190 pNew->sz = sz; in createVFile()
191 pNew->a = malloc(sz); in createVFile()
192 if( sz>0 ){ in createVFile()
193 if( pNew->a==0 || fread(pNew->a, sz, 1, in)<1 ){ in createVFile()
198 pNew->sz = -1; in createVFile()
213 pVFile->sz = -1; in inmemClose()
227 if( iOfst<0 || iOfst>=pVFile->sz ){ in inmemRead()
231 if( iOfst+iAmt>pVFile->sz ){ in inmemRead()
233 iAmt = (int)(pVFile->sz - iOfst); in inmemRead()
248 if( iOfst+iAmt > pVFile->sz ){ in inmemWrite()
258 if( iOfst > pVFile->sz ){ in inmemWrite()
259 memset(pVFile->a + pVFile->sz, 0, (int)(iOfst - pVFile->sz)); in inmemWrite()
261 pVFile->sz = (int)(iOfst + iAmt); in inmemWrite()
269 if( pVFile->sz>iSize && iSize>=0 ) pVFile->sz = (int)iSize; in inmemTruncate()
276 *pSize = ((VHandle*)pFile)->pVFile->sz; in inmemFileSize()
363 pVFile->sz = -1; in inmemDelete()