Lines Matching refs:iOfst
1355 sqlite3_int64 iOfst /* Start reading here */ in inmemRead() argument
1359 if( iOfst<0 || iOfst>=pVFile->sz ){ in inmemRead()
1363 if( iOfst+iAmt>pVFile->sz ){ in inmemRead()
1365 iAmt = (int)(pVFile->sz - iOfst); in inmemRead()
1366 memcpy(pData, pVFile->a + iOfst, iAmt); in inmemRead()
1369 memcpy(pData, pVFile->a + iOfst, iAmt); in inmemRead()
1376 sqlite3_int64 iOfst /* Start writing here */ in inmemWrite() argument
1380 if( iOfst+iAmt > pVFile->sz ){ in inmemWrite()
1381 if( iOfst+iAmt >= MX_FILE_SZ ){ in inmemWrite()
1384 pVFile->a = safe_realloc(pVFile->a, (int)(iOfst+iAmt)); in inmemWrite()
1385 if( iOfst > pVFile->sz ){ in inmemWrite()
1386 memset(pVFile->a + pVFile->sz, 0, (int)(iOfst - pVFile->sz)); in inmemWrite()
1388 pVFile->sz = (int)(iOfst + iAmt); in inmemWrite()
1390 memcpy(pVFile->a + iOfst, pData, iAmt); in inmemWrite()