Lines Matching refs:zBuf
2947 char zBuf[50]; in sha3_step_vformat() local
2949 sqlite3_vsnprintf(sizeof(zBuf),zBuf,zFormat,ap); in sha3_step_vformat()
2951 n = (int)strlen(zBuf); in sha3_step_vformat()
2952 SHA3Update(p, (unsigned char*)zBuf, n); in sha3_step_vformat()
3373 char zBuf[50]; in hash_step_vformat() local
3375 sqlite3_vsnprintf(sizeof(zBuf),zBuf,zFormat,ap); in hash_step_vformat()
3377 n = (int)strlen(zBuf); in hash_step_vformat()
3378 hash_step(p, (unsigned char*)zBuf, n); in hash_step_vformat()
9765 void *zBuf, in apndRead() argument
9771 return pFile->pMethods->xRead(pFile, zBuf, iAmt, paf->iPgOne+iOfst); in apndRead()
9807 const void *zBuf, in apndWrite() argument
9820 return pFile->pMethods->xWrite(pFile, zBuf, iAmt, paf->iPgOne+iOfst); in apndWrite()
16547 char zBuf[50]; in vfstrace_print_errcode() local
16552 sqlite3_snprintf(sizeof(zBuf), zBuf, "%s | 0x%x", zVal, rc&0xffff00); in vfstrace_print_errcode()
16554 sqlite3_snprintf(sizeof(zBuf), zBuf, "%d (0x%x)", rc, rc); in vfstrace_print_errcode()
16556 zVal = zBuf; in vfstrace_print_errcode()
16601 void *zBuf, in vfstraceRead() argument
16611 rc = p->pReal->pMethods->xRead(p->pReal, zBuf, iAmt, iOfst); in vfstraceRead()
16621 const void *zBuf, in vfstraceWrite() argument
16631 rc = p->pReal->pMethods->xWrite(p->pReal, zBuf, iAmt, iOfst); in vfstraceWrite()
16659 char zBuf[100]; in vfstraceSync() local
16660 memcpy(zBuf, "|0", 3); in vfstraceSync()
16662 if( flags & SQLITE_SYNC_FULL ) strappend(zBuf, &i, "|FULL"); in vfstraceSync()
16663 else if( flags & SQLITE_SYNC_NORMAL ) strappend(zBuf, &i, "|NORMAL"); in vfstraceSync()
16664 if( flags & SQLITE_SYNC_DATAONLY ) strappend(zBuf, &i, "|DATAONLY"); in vfstraceSync()
16666 sqlite3_snprintf(sizeof(zBuf)-i, &zBuf[i], "|0x%x", flags); in vfstraceSync()
16670 &zBuf[1]); in vfstraceSync()
16758 char zBuf[100]; in vfstraceFileControl() local
16769 sqlite3_snprintf(sizeof(zBuf), zBuf, "SIZE_HINT,%lld", in vfstraceFileControl()
16771 zOp = zBuf; in vfstraceFileControl()
16775 sqlite3_snprintf(sizeof(zBuf), zBuf, "CHUNK_SIZE,%d", *(int*)pArg); in vfstraceFileControl()
16776 zOp = zBuf; in vfstraceFileControl()
16782 sqlite3_snprintf(sizeof(zBuf), zBuf, "PERSIST_WAL,%d", *(int*)pArg); in vfstraceFileControl()
16783 zOp = zBuf; in vfstraceFileControl()
16865 sqlite3_snprintf(sizeof(zBuf), zBuf, "PRAGMA,[%s,%s]",a[1],a[2]); in vfstraceFileControl()
16866 zOp = zBuf; in vfstraceFileControl()
16873 sqlite3_snprintf(sizeof(zBuf), zBuf, "MMAP_SIZE,%lld",iMMap); in vfstraceFileControl()
16874 zOp = zBuf; in vfstraceFileControl()
16896 sqlite3_snprintf(sizeof(zBuf), zBuf, "LOCK_TIMEOUT,%d", *(int*)pArg); in vfstraceFileControl()
16897 zOp = zBuf; in vfstraceFileControl()
16910 sqlite3_snprintf(sizeof zBuf, zBuf, "%d", op); in vfstraceFileControl()
16911 zOp = zBuf; in vfstraceFileControl()
19457 char *zBuf /* Space to store a generated string */ in recoverUnusedString() argument
19463 sqlite3_snprintf(20,zBuf,"(%s%u)", zA, i++); in recoverUnusedString()
19464 }while( strstr(z,zBuf)!=0 ); in recoverUnusedString()
19465 return zBuf; in recoverUnusedString()
24101 char *zBuf = sqlite3_malloc64( szVar-5 ); in bind_prepared_stmt() local
24102 if( zBuf ){ in bind_prepared_stmt()
24103 memcpy(zBuf, &zVar[6], szVar-5); in bind_prepared_stmt()
24104 sqlite3_bind_text64(pStmt, i, zBuf, szVar-6, sqlite3_free, SQLITE_UTF8); in bind_prepared_stmt()
24679 char zBuf[200]; in exec_prepared_stmt() local
24680 sqlite3_snprintf(sizeof(zBuf), zBuf, "%llu row%s\n", in exec_prepared_stmt()
24682 printf("%s", zBuf); in exec_prepared_stmt()
25793 char zBuf[100]; in deduceDatabaseType() local
25801 n = fread(zBuf, 16, 1, f); in deduceDatabaseType()
25802 if( n==1 && memcmp(zBuf, "SQLite format 3", 16)==0 ){ in deduceDatabaseType()
25807 n = fread(zBuf, 25, 1, f); in deduceDatabaseType()
25808 if( n==1 && memcmp(zBuf, "Start-Of-SQLite3-", 17)==0 ){ in deduceDatabaseType()
25812 n = fread(zBuf, 22, 1, f); in deduceDatabaseType()
25813 if( n==1 && zBuf[0]==0x50 && zBuf[1]==0x4b && zBuf[2]==0x05 in deduceDatabaseType()
25814 && zBuf[3]==0x06 ){ in deduceDatabaseType()
26220 char zBuf[1000]; in linenoise_completion() local
26225 if( nLine>(i64)sizeof(zBuf)-30 ) return; in linenoise_completion()
26230 memcpy(zBuf, zLine, iStart); in linenoise_completion()
26241 if( iStart+nCompletion < (i64)sizeof(zBuf)-1 && zCompletion ){ in linenoise_completion()
26242 memcpy(zBuf+iStart, zCompletion, nCompletion+1); in linenoise_completion()
26243 linenoiseAddCompletion(lc, zBuf); in linenoise_completion()
29536 char zBuf[100]; in do_meta_command() local
29537 sqlite3_snprintf(sizeof(zBuf), zBuf, "%lld", iRes); in do_meta_command()
29538 sqlite3_fprintf(p->out, "%s\n", zBuf); in do_meta_command()
31285 char zBuf[200]; in do_meta_command() local
31287 sqlite3_snprintf(sizeof(zBuf),zBuf,"%s: %lld 0x%llx\n", azArg[i],v,v); in do_meta_command()
31288 sqlite3_fputs(zBuf, p->out); in do_meta_command()
32997 char *zBuf = 0; in process_sqliterc() local
33002 sqliterc = zBuf = find_xdg_config(); in process_sqliterc()
33011 zBuf = sqlite3_mprintf("%s/.sqliterc",home_dir); in process_sqliterc()
33012 shell_check_oom(zBuf); in process_sqliterc()
33013 sqliterc = zBuf; in process_sqliterc()
33028 sqlite3_free(zBuf); in process_sqliterc()