Lines Matching defs:amt

8341 SQLITE_PRIVATE int sqlite3BtreeKey(BtCursor*, u32 offset, u32 amt, void*);
8345 SQLITE_PRIVATE int sqlite3BtreeData(BtCursor*, u32 offset, u32 amt, void*);
8352 SQLITE_PRIVATE int sqlite3BtreePutData(BtCursor*, u32 offset, u32 amt, void*);
9462 SQLITE_PRIVATE int sqlite3OsRead(sqlite3_file*, void*, int amt, i64 offset);
9463 SQLITE_PRIVATE int sqlite3OsWrite(sqlite3_file*, const void*, int amt, i64 offset);
14738 SQLITE_PRIVATE int sqlite3OsRead(sqlite3_file *id, void *pBuf, int amt, i64 offset){
14740 return id->pMethods->xRead(id, pBuf, amt, offset);
14742 SQLITE_PRIVATE int sqlite3OsWrite(sqlite3_file *id, const void *pBuf, int amt, i64 offset){
14744 return id->pMethods->xWrite(id, pBuf, amt, offset);
19568 int amt;
19570 amt = 1;
19571 while( (c=(*++fmt))!='%' && c!=0 ) amt++;
19572 sqlite3StrAccumAppend(pAccum, bufpt, amt);
23006 int amt, /* Number of bytes to read */
23018 if( DosRead( pFile->h, pBuf, amt, &got ) != NO_ERROR ){
23021 if( got == (ULONG)amt )
23025 memset(&((char*)pBuf)[got], 0, amt-got);
23037 int amt, /* Number of bytes to write */
23051 assert( amt>0 );
23052 while( amt > 0 &&
23053 ( rc = DosWrite( pFile->h, (PVOID)pBuf, amt, &wrote ) ) == NO_ERROR &&
23056 amt -= wrote;
23060 return ( rc != NO_ERROR || amt > (int)wrote ) ? SQLITE_FULL : SQLITE_OK;
28069 int amt,
28081 || offset+amt<=PENDING_BYTE
28085 got = seekAndRead(pFile, offset, pBuf, amt);
28086 if( got==amt ){
28094 memset(&((char*)pBuf)[got], 0, amt-got);
28148 int amt,
28154 assert( amt>0 );
28161 || offset+amt<=PENDING_BYTE
28174 if( offset<=24 && offset+amt>=27 ){
28187 while( amt>0 && (wrote = seekAndWrite(pFile, offset, pBuf, amt))>0 ){
28188 amt -= wrote;
28192 SimulateIOError(( wrote=(-1), amt=1 ));
28193 SimulateDiskfullError(( wrote=0, amt=1 ));
28195 if( amt>0 ){
33759 int amt, /* Number of bytes to read */
33773 while( !osReadFile(pFile->h, pBuf, amt, &nRead, 0) ){
33781 if( nRead<(DWORD)amt ){
33783 memset(&((char*)pBuf)[nRead], 0, amt-nRead);
33797 int amt, /* Number of bytes to write */
33804 assert( amt>0 );
33814 int nRem = amt; /* Number of bytes yet to be written */
53200 ** A total of "amt" bytes are read or written beginning at "offset".
53224 u32 amt, /* Read this many bytes */
53244 if( NEVER(offset+amt > nKey+pCur->info.nData)
53253 int a = amt;
53260 amt -= a;
53265 if( rc==SQLITE_OK && amt>0 ){
53300 for( ; rc==SQLITE_OK && amt>0 && nextPage; iIdx++){
53331 int a = amt;
53375 amt -= a;
53381 if( rc==SQLITE_OK && amt>0 ){
53389 ** "amt" bytes will be transfered into pBuf[]. The transfer
53396 ** wrong. An error is returned if "offset+amt" is larger than
53399 SQLITE_PRIVATE int sqlite3BtreeKey(BtCursor *pCur, u32 offset, u32 amt, void *pBuf){
53404 return accessPayload(pCur, offset, amt, (unsigned char*)pBuf, 0);
53409 ** "amt" bytes will be transfered into pBuf[]. The transfer
53413 ** wrong. An error is returned if "offset+amt" is larger than
53416 SQLITE_PRIVATE int sqlite3BtreeData(BtCursor *pCur, u32 offset, u32 amt, void *pBuf){
53431 rc = accessPayload(pCur, offset, amt, pBuf, 0);
57560 SQLITE_PRIVATE int sqlite3BtreePutData(BtCursor *pCsr, u32 offset, u32 amt, void *z){
57591 return accessPayload(pCsr, offset, amt, (unsigned char *)z, 1);
59253 ** to. offset and amt determine what portion of the data or key to retrieve.
59266 int amt, /* Number of bytes to return. */
59286 if( offset+amt<=available && (pMem->flags&MEM_Dyn)==0 ){
59290 }else if( SQLITE_OK==(rc = sqlite3VdbeMemGrow(pMem, amt+2, 0)) ){
59295 rc = sqlite3BtreeKey(pCur, offset, amt, pMem->z);
59297 rc = sqlite3BtreeData(pCur, offset, amt, pMem->z);
59299 pMem->z[amt] = 0;
59300 pMem->z[amt+1] = 0;
59305 pMem->n = amt;