Lines Matching refs:nByte
2915 int nByte = sqlite3_value_bytes(argv[0]); in sha3Func() local
2930 SHA3Update(&cx, sqlite3_value_blob(argv[0]), nByte); in sha3Func()
2932 SHA3Update(&cx, sqlite3_value_text(argv[0]), nByte); in sha3Func()
3436 int nByte = sqlite3_value_bytes(argv[0]); in sha1Func() local
3443 hash_step(&cx, sqlite3_value_blob(argv[0]), nByte); in sha1Func()
3445 hash_step(&cx, sqlite3_value_text(argv[0]), nByte); in sha1Func()
8683 sqlite3_int64 nByte = nNew*sizeof(FsdirLevel); in fsdirNext() local
8684 FsdirLevel *aNew = (FsdirLevel*)sqlite3_realloc64(pCur->aLvl, nByte); in fsdirNext()
9693 static void apndDlError(sqlite3_vfs*, int nByte, char *zErrMsg);
9696 static int apndRandomness(sqlite3_vfs*, int nByte, char *zOut);
10128 static void apndDlError(sqlite3_vfs *pVfs, int nByte, char *zErrMsg){ in apndDlError() argument
10129 ORIGVFS(pVfs)->xDlError(ORIGVFS(pVfs), nByte, zErrMsg); in apndDlError()
10137 static int apndRandomness(sqlite3_vfs *pVfs, int nByte, char *zBufOut){ in apndRandomness() argument
10138 return ORIGVFS(pVfs)->xRandomness(ORIGVFS(pVfs), nByte, zBufOut); in apndRandomness()
10566 int nByte = sizeof(ZipfileTab) + ZIPFILE_BUFFER_SIZE; in zipfileConnect() local
10595 pNew = (ZipfileTab*)sqlite3_malloc64((sqlite3_int64)nByte+nFile); in zipfileConnect()
10597 memset(pNew, 0, nByte+nFile); in zipfileConnect()
10907 u16 nByte = zipfileRead16(p); in zipfileScanExtra() local
10920 p += nByte; in zipfileScanExtra()
12161 static int zipfileBufferGrow(ZipfileBuffer *pBuf, int nByte){ in zipfileBufferGrow() argument
12162 if( pBuf->n+nByte>pBuf->nAlloc ){ in zipfileBufferGrow()
12165 int nReq = pBuf->n + nByte; in zipfileBufferGrow()
12210 int nByte; in zipfileStep() local
12324 nByte = ZIPFILE_LFH_FIXED_SZ + e.cds.nFile + 9; in zipfileStep()
12325 if( (rc = zipfileBufferGrow(&p->body, nByte)) ) goto zipfile_step_out; in zipfileStep()
12336 nByte = ZIPFILE_CDS_FIXED_SZ + e.cds.nFile + 9; in zipfileStep()
12337 if( (rc = zipfileBufferGrow(&p->cds, nByte)) ) goto zipfile_step_out; in zipfileStep()
12930 static void *idxMalloc(int *pRc, int nByte){ in idxMalloc() argument
12933 assert( nByte>0 ); in idxMalloc()
12934 pRet = sqlite3_malloc(nByte); in idxMalloc()
12936 memset(pRet, 0, nByte); in idxMalloc()
13457 int nByte; in idxGetTableInfo() local
13466 nByte = sizeof(IdxTable) + nTab + 1; in idxGetTableInfo()
13475 nByte += 1 + STRLEN(zCol); in idxGetTableInfo()
13480 nByte += 1 + STRLEN(zColSeq); in idxGetTableInfo()
13487 nByte += sizeof(IdxColumn) * nCol; in idxGetTableInfo()
13489 pNew = idxMalloc(&rc, nByte); in idxGetTableInfo()
14320 int nByte; /* Bytes of space allocated at z */ member
14381 int nByte = sqlite3_value_bytes(argv[1]); in idxRemFunc() local
14383 if( nByte>pSlot->nByte ){ in idxRemFunc()
14384 char *zNew = (char*)sqlite3_realloc(pSlot->z, nByte*2); in idxRemFunc()
14389 pSlot->nByte = nByte*2; in idxRemFunc()
14392 pSlot->n = nByte; in idxRemFunc()
14395 if( pData ) memcpy(pSlot->z, pData, nByte); in idxRemFunc()
14398 memcpy(pSlot->z, pData, nByte); in idxRemFunc()
14585 int nByte = sizeof(struct IdxRemCtx) + (sizeof(struct IdxRemSlot) * nMax); in idxPopulateStat1() local
14586 pCtx = (struct IdxRemCtx*)idxMalloc(&rc, nByte); in idxPopulateStat1()
16430 static void vfstraceDlError(sqlite3_vfs*, int nByte, char *zErrMsg);
16433 static int vfstraceRandomness(sqlite3_vfs*, int nByte, char *zOut);
17219 static void vfstraceDlError(sqlite3_vfs *pVfs, int nByte, char *zErrMsg){ in vfstraceDlError() argument
17223 vfstrace_printf(pInfo, "%s.xDlError(%d)", pInfo->zVfsName, nByte); in vfstraceDlError()
17224 pRoot->xDlError(pRoot, nByte, zErrMsg); in vfstraceDlError()
17253 static int vfstraceRandomness(sqlite3_vfs *pVfs, int nByte, char *zBufOut){ in vfstraceRandomness() argument
17257 vfstrace_printf(pInfo, "%s.xRandomness(%d)\n", pInfo->zVfsName, nByte); in vfstraceRandomness()
17258 return pRoot->xRandomness(pRoot, nByte, zBufOut); in vfstraceRandomness()
17358 size_t nByte; in vfstrace_register() local
17363 nByte = sizeof(*pNew) + sizeof(*pInfo) + nName + 1; in vfstrace_register()
17364 pNew = sqlite3_malloc64( nByte ); in vfstrace_register()
17366 memset(pNew, 0, nByte); in vfstrace_register()
19051 static void *recoverMalloc(sqlite3_recover *p, i64 nByte){ in recoverMalloc() argument
19053 assert( nByte>0 ); in recoverMalloc()
19055 pRet = sqlite3_malloc64(nByte); in recoverMalloc()
19057 memset(pRet, 0, nByte); in recoverMalloc()
19107 int nByte = SZ_RECOVERBITMAP_32 + nElem*sizeof(u32); in recoverBitmapAlloc() local
19108 RecoverBitmap *pRet = (RecoverBitmap*)recoverMalloc(p, nByte); in recoverBitmapAlloc()
19774 int nByte = 0; in recoverAddTable() local
19777 nByte += (sqlite3_column_bytes(pStmt, 1)+1); in recoverAddTable()
19779 nByte += sizeof(RecoverTable) + nCol*sizeof(RecoverColumn) + nName+1; in recoverAddTable()
19782 pNew = recoverMalloc(p, nByte); in recoverAddTable()
20381 int nByte = 0; in recoverWriteDataInit() local
20391 nByte = sizeof(sqlite3_value*) * (p1->nMax+1); in recoverWriteDataInit()
20392 p1->apVal = (sqlite3_value**)recoverMalloc(p, nByte); in recoverWriteDataInit()
20826 int nByte = 0; in recoverIsValidPage() local
20829 nByte = recoverGetU16(&a[iFree+2]); in recoverIsValidPage()
20830 if( iFree+nByte>n || nByte<4 ) return 0; in recoverIsValidPage()
20831 if( iNext && iNext<iFree+nByte ) return 0; in recoverIsValidPage()
20832 memset(&aUsed[iFree], 0xFF, nByte); in recoverIsValidPage()
20846 int nByte = 0; in recoverIsValidPage() local
20851 if( eType==0x05 || eType==0x02 ) nByte += 4; in recoverIsValidPage()
20852 nByte += recoverGetVarint(&a[iOff+nByte], &nPayload); in recoverIsValidPage()
20855 nByte += recoverGetVarint(&a[iOff+nByte], &dummy); in recoverIsValidPage()
20863 nByte += nPayload; in recoverIsValidPage()
20865 nByte += K+4; in recoverIsValidPage()
20867 nByte += M+4; in recoverIsValidPage()
20871 if( iOff+nByte>n ){ in recoverIsValidPage()
20874 for(iByte=iOff; iByte<(iOff+nByte); iByte++){ in recoverIsValidPage()
20993 int nByte = (nSz>=((iBlk+1)*nMax)) ? nMax : (nSz % nMax); in recoverVfsDetectPagesize() local
20995 rc = pFd->pMethods->xRead(pFd, aPg, nByte, iBlk*nMax); in recoverVfsDetectPagesize()
21026 static int recoverVfsRead(sqlite3_file *pFd, void *aBuf, int nByte, i64 iOff){ in recoverVfsRead() argument
21030 rc = pFd->pMethods->xRead(pFd, aBuf, nByte, iOff); in recoverVfsRead()
21031 if( nByte==16 ){ in recoverVfsRead()
21034 if( rc==SQLITE_OK && iOff==0 && nByte>=108 ){ in recoverVfsRead()
21105 p->pgsz = nByte; in recoverVfsRead()
21106 p->pPage1Cache = (u8*)recoverMalloc(p, nByte*2); in recoverVfsRead()
21108 p->pPage1Disk = &p->pPage1Cache[nByte]; in recoverVfsRead()
21109 memcpy(p->pPage1Disk, aBuf, nByte); in recoverVfsRead()
21122 memset(&((u8*)aBuf)[sizeof(aHdr)], 0, nByte-sizeof(aHdr)); in recoverVfsRead()
21124 memcpy(p->pPage1Cache, aBuf, nByte); in recoverVfsRead()
21132 rc = pFd->pMethods->xRead(pFd, aBuf, nByte, iOff); in recoverVfsRead()
21158 sqlite3_file *pFd, const void *aBuf, int nByte, i64 iOff in recoverVfsWrite() argument
21161 pFd->pMethods->xWrite(pFd, aBuf, nByte, iOff) in recoverVfsWrite()
21440 int nByte = 0; in recoverInit() local
21447 nByte = sizeof(sqlite3_recover) + nDb+1 + nUri+1; in recoverInit()
21448 pRet = (sqlite3_recover*)sqlite3_malloc(nByte); in recoverInit()
21450 memset(pRet, 0, nByte); in recoverInit()
29619 i64 nByte; /* Number of bytes in an SQL string */ in do_meta_command() local
29834 nByte = 64 /* space for "INSERT INTO", "VALUES(", ")\0" */ in do_meta_command()
29838 zSql = sqlite3_malloc64( nByte ); in do_meta_command()
29844 sqlite3_snprintf(nByte, zSql, "INSERT INTO \"%w\".\"%w\" VALUES(?", in do_meta_command()
29847 sqlite3_snprintf(nByte, zSql, "INSERT INTO \"%w\" VALUES(?", zTable); in do_meta_command()
29856 assert( j<nByte ); in do_meta_command()
31178 int ii, nByte; in do_meta_command() local
31185 nByte = sizeof(pSession->azFilter[0])*(nCmd-1); in do_meta_command()
31186 pSession->azFilter = sqlite3_malloc( nByte ); in do_meta_command()