Lines Matching defs:amt

15114 SQLITE_PRIVATE int sqlite3OsRead(sqlite3_file*, void*, int amt, i64 offset);
15115 SQLITE_PRIVATE int sqlite3OsWrite(sqlite3_file*, const void*, int amt, i64 offset);
15749 SQLITE_PRIVATE int sqlite3BtreePayload(BtCursor*, u32 offset, u32 amt, void*);
15759 SQLITE_PRIVATE int sqlite3BtreePayloadChecked(BtCursor*, u32 offset, u32 amt, void*);
15760 SQLITE_PRIVATE int sqlite3BtreePutData(BtCursor*, u32 offset, u32 amt, void*);
24951 SQLITE_PRIVATE int sqlite3OsRead(sqlite3_file *id, void *pBuf, int amt, i64 offset){
24953 return id->pMethods->xRead(id, pBuf, amt, offset);
24955 SQLITE_PRIVATE int sqlite3OsWrite(sqlite3_file *id, const void *pBuf, int amt, i64 offset){
24957 return id->pMethods->xWrite(id, pBuf, amt, offset);
40169 int amt,
40176 assert( amt>0 );
40183 || offset+amt<=PENDING_BYTE
40191 if( offset+amt <= pFile->mmapSize ){
40192 memcpy(pBuf, &((u8 *)(pFile->pMapRegion))[offset], amt);
40198 amt -= nCopy;
40204 got = seekAndRead(pFile, offset, pBuf, amt);
40205 if( got==amt ){
40225 sqlite3_log(SQLITE_IOERR_CORRUPTFS, "unixRead-EDEVERR, fd:[%d], amt[%d], got[%d], offset[%lld]", pFile->h, amt, got, offset);
40230 sqlite3_log(SQLITE_IOERR_READ, "unixRead-got<0, fd: [%d], amt[%d], got[%d], offset[%lld]", pFile->h, amt, got, offset);
40236 memset(&((char*)pBuf)[got], 0, amt-got);
40306 int amt,
40312 assert( amt>0 );
40319 || offset+amt<=PENDING_BYTE
40332 if( offset<=24 && offset+amt>=27 ){
40349 if( offset+amt <= pFile->mmapSize ){
40350 memcpy(&((u8 *)(pFile->pMapRegion))[offset], pBuf, amt);
40356 amt -= nCopy;
40362 while( (wrote = seekAndWrite(pFile, offset, pBuf, amt))<amt && wrote>0 ){
40363 amt -= wrote;
40367 SimulateIOError(( wrote=(-1), amt=1 ));
40368 SimulateDiskfullError(( wrote=0, amt=1 ));
40370 if( amt>wrote ){
40375 "unixWrite, lastErrno set by seekAndWrite, fd[%d], offset[%lld], wrote[%d], amt[%d], lastErrno[%d]",
40379 amt,
40387 "unixWrite, not a system error, fd[%d], offset[%lld], wrote[%d], amt[%d], lastErrno[%d]",
40391 amt,
47796 int amt, /* Number of bytes to read */
47807 assert( amt>0 );
47812 pFile->h, pBuf, amt, offset, pFile->locktype));
47818 if( offset+amt <= pFile->mmapSize ){
47819 memcpy(pBuf, &((u8 *)(pFile->pMapRegion))[offset], amt);
47827 amt -= nCopy;
47839 while( !osReadFile(pFile->h, pBuf, amt, &nRead, 0) ){
47844 while( !osReadFile(pFile->h, pBuf, amt, &nRead, &overlapped) &&
47856 if( nRead<(DWORD)amt ){
47858 memset(&((char*)pBuf)[nRead], 0, amt-nRead);
47876 int amt, /* Number of bytes to write */
47883 assert( amt>0 );
47890 pFile->h, pBuf, amt, offset, pFile->locktype));
47896 if( offset+amt <= pFile->mmapSize ){
47897 memcpy(&((u8 *)(pFile->pMapRegion))[offset], pBuf, amt);
47905 amt -= nCopy;
47921 int nRem = amt; /* Number of bytes yet to be written */
73559 ** A total of "amt" bytes are read or written beginning at "offset".
73583 u32 amt, /* Read this many bytes */
73606 assert( offset+amt <= pCur->info.nPayload );
73620 int a = amt;
73627 amt -= a;
73633 if( rc==SQLITE_OK && amt>0 ){
73674 assert( rc==SQLITE_OK && amt>0 );
73702 int a = amt;
73751 amt -= a;
73752 if( amt==0 ) return rc;
73760 if( rc==SQLITE_OK && amt>0 ){
73769 ** pointing. "amt" bytes will be transferred into pBuf[]. The transfer
73781 ** wrong. An error is returned if "offset+amt" is larger than
73784 SQLITE_PRIVATE int sqlite3BtreePayload(BtCursor *pCur, u32 offset, u32 amt, void *pBuf){
73788 return accessPayload(pCur, offset, amt, (unsigned char*)pBuf, 0);
73800 u32 amt,
73809 return rc ? rc : accessPayload(pCur, offset, amt, pBuf, 0);
73811 SQLITE_PRIVATE int sqlite3BtreePayloadChecked(BtCursor *pCur, u32 offset, u32 amt, void *pBuf){
73814 return accessPayload(pCur, offset, amt, pBuf, 0);
73816 return accessPayloadChecked(pCur, offset, amt, pBuf);
73844 int amt;
73853 amt = pCur->info.nLocal;
73854 if( amt>(int)(pCur->pPage->aDataEnd - pCur->info.pPayload) ){
73858 amt = MAX(0, (int)(pCur->pPage->aDataEnd - pCur->info.pPayload));
73860 *pAmt = (u32)amt;
79605 SQLITE_PRIVATE int sqlite3BtreePutData(BtCursor *pCsr, u32 offset, u32 amt, void *z){
79647 return accessPayload(pCsr, offset, amt, (unsigned char *)z, 1);
81783 ** to. offset and amt determine what portion of the data or key to retrieve.
81798 u32 amt, /* Number of bytes to return. */
81803 if( sqlite3BtreeMaxRecordSize(pCur)<offset+amt ){
81806 if( SQLITE_OK==(rc = sqlite3VdbeMemClearAndResize(pMem, amt+1)) ){
81807 rc = sqlite3BtreePayload(pCur, offset, amt, pMem->z);
81809 pMem->z[amt] = 0; /* Overrun area used when reading malformed records */
81811 pMem->n = (int)amt;
81820 u32 amt, /* Number of bytes to return. */
81835 if( amt<=available ){
81837 pMem->n = (int)amt;
81839 rc = sqlite3VdbeMemFromBtree(pCur, 0, amt, pMem);