Lines Matching refs:amt

9540 SQLITE_PRIVATE int sqlite3BtreeKey(BtCursor*, u32 offset, u32 amt, void*);
9544 SQLITE_PRIVATE int sqlite3BtreeData(BtCursor*, u32 offset, u32 amt, void*);
9549 SQLITE_PRIVATE int sqlite3BtreePutData(BtCursor*, u32 offset, u32 amt, void*);
10730 SQLITE_PRIVATE int sqlite3OsRead(sqlite3_file*, void*, int amt, i64 offset);
10731 SQLITE_PRIVATE int sqlite3OsWrite(sqlite3_file*, const void*, int amt, i64 offset);
16535 SQLITE_PRIVATE int sqlite3OsRead(sqlite3_file *id, void *pBuf, int amt, i64 offset){ in sqlite3OsRead() argument
16537 return id->pMethods->xRead(id, pBuf, amt, offset); in sqlite3OsRead()
16539 SQLITE_PRIVATE int sqlite3OsWrite(sqlite3_file *id, const void *pBuf, int amt, i64 offset){ in sqlite3OsWrite() argument
16541 return id->pMethods->xWrite(id, pBuf, amt, offset); in sqlite3OsWrite()
28641 int amt,
28648 assert( amt>0 );
28655 || offset+amt<=PENDING_BYTE
28663 if( offset+amt <= pFile->mmapSize ){
28664 memcpy(pBuf, &((u8 *)(pFile->pMapRegion))[offset], amt);
28670 amt -= nCopy;
28676 got = seekAndRead(pFile, offset, pBuf, amt);
28677 if( got==amt ){
28685 memset(&((char*)pBuf)[got], 0, amt-got);
28755 int amt,
28761 assert( amt>0 );
28768 || offset+amt<=PENDING_BYTE
28781 if( offset<=24 && offset+amt>=27 ){
28798 if( offset+amt <= pFile->mmapSize ){
28799 memcpy(&((u8 *)(pFile->pMapRegion))[offset], pBuf, amt);
28805 amt -= nCopy;
28811 while( amt>0 && (wrote = seekAndWrite(pFile, offset, pBuf, amt))>0 ){
28812 amt -= wrote;
28816 SimulateIOError(( wrote=(-1), amt=1 ));
28817 SimulateDiskfullError(( wrote=0, amt=1 ));
28819 if( amt>0 ){
35717 int amt, /* Number of bytes to read */
35728 assert( amt>0 );
35733 pFile->h, pBuf, amt, offset, pFile->locktype));
35739 if( offset+amt <= pFile->mmapSize ){
35740 memcpy(pBuf, &((u8 *)(pFile->pMapRegion))[offset], amt);
35748 amt -= nCopy;
35760 while( !osReadFile(pFile->h, pBuf, amt, &nRead, 0) ){
35765 while( !osReadFile(pFile->h, pBuf, amt, &nRead, &overlapped) &&
35777 if( nRead<(DWORD)amt ){
35779 memset(&((char*)pBuf)[nRead], 0, amt-nRead);
35797 int amt, /* Number of bytes to write */
35804 assert( amt>0 );
35811 pFile->h, pBuf, amt, offset, pFile->locktype));
35817 if( offset+amt <= pFile->mmapSize ){
35818 memcpy(&((u8 *)(pFile->pMapRegion))[offset], pBuf, amt);
35826 amt -= nCopy;
35842 int nRem = amt; /* Number of bytes yet to be written */
57244 u32 amt, /* Read this many bytes */
57267 bEnd = offset+amt==pCur->info.nPayload;
57269 assert( offset+amt <= pCur->info.nPayload );
57278 int a = amt;
57285 amt -= a;
57291 if( rc==SQLITE_OK && amt>0 ){
57336 for( ; rc==SQLITE_OK && amt>0 && nextPage; iIdx++){
57370 int a = amt;
57421 amt -= a;
57427 if( rc==SQLITE_OK && amt>0 ){
57445 SQLITE_PRIVATE int sqlite3BtreeKey(BtCursor *pCur, u32 offset, u32 amt, void *pBuf){
57450 return accessPayload(pCur, offset, amt, (unsigned char*)pBuf, 0);
57462 SQLITE_PRIVATE int sqlite3BtreeData(BtCursor *pCur, u32 offset, u32 amt, void *pBuf){
57477 rc = accessPayload(pCur, offset, amt, pBuf, 0);
57505 u32 amt;
57514 amt = (int)(pCur->apPage[pCur->iPage]->aDataEnd - pCur->info.pPayload);
57515 if( pCur->info.nLocal<amt ) amt = pCur->info.nLocal;
57516 *pAmt = amt;
62180 SQLITE_PRIVATE int sqlite3BtreePutData(BtCursor *pCsr, u32 offset, u32 amt, void *z){
62222 return accessPayload(pCsr, offset, amt, (unsigned char *)z, 1);
64039 u32 amt, /* Number of bytes to return. */
64060 if( offset+amt<=available ){
64063 pMem->n = (int)amt;
64066 if( SQLITE_OK==(rc = sqlite3VdbeMemClearAndResize(pMem, amt+2)) ){
64068 rc = sqlite3BtreeKey(pCur, offset, amt, pMem->z);
64070 rc = sqlite3BtreeData(pCur, offset, amt, pMem->z);
64073 pMem->z[amt] = 0;
64074 pMem->z[amt+1] = 0;
64076 pMem->n = (int)amt;