Lines Matching refs:nByte

3343   int nByte = sqlite3_value_bytes(argv[0]);  in sha3Func()  local
3358 SHA3Update(&cx, sqlite3_value_blob(argv[0]), nByte); in sha3Func()
3360 SHA3Update(&cx, sqlite3_value_text(argv[0]), nByte); in sha3Func()
7859 sqlite3_int64 nByte = nNew*sizeof(FsdirLevel); in fsdirNext() local
7860 FsdirLevel *aNew = (FsdirLevel*)sqlite3_realloc64(pCur->aLvl, nByte); in fsdirNext()
8864 static void apndDlError(sqlite3_vfs*, int nByte, char *zErrMsg);
8867 static int apndRandomness(sqlite3_vfs*, int nByte, char *zOut);
9299 static void apndDlError(sqlite3_vfs *pVfs, int nByte, char *zErrMsg){ in apndDlError() argument
9300 ORIGVFS(pVfs)->xDlError(ORIGVFS(pVfs), nByte, zErrMsg); in apndDlError()
9308 static int apndRandomness(sqlite3_vfs *pVfs, int nByte, char *zBufOut){ in apndRandomness() argument
9309 return ORIGVFS(pVfs)->xRandomness(ORIGVFS(pVfs), nByte, zBufOut); in apndRandomness()
9727 int nByte = sizeof(ZipfileTab) + ZIPFILE_BUFFER_SIZE; in zipfileConnect() local
9756 pNew = (ZipfileTab*)sqlite3_malloc64((sqlite3_int64)nByte+nFile); in zipfileConnect()
9758 memset(pNew, 0, nByte+nFile); in zipfileConnect()
10068 u16 nByte = zipfileRead16(p); in zipfileScanExtra() local
10081 p += nByte; in zipfileScanExtra()
11322 static int zipfileBufferGrow(ZipfileBuffer *pBuf, int nByte){ in zipfileBufferGrow() argument
11323 if( pBuf->n+nByte>pBuf->nAlloc ){ in zipfileBufferGrow()
11326 int nReq = pBuf->n + nByte; in zipfileBufferGrow()
11371 int nByte; in zipfileStep() local
11485 nByte = ZIPFILE_LFH_FIXED_SZ + e.cds.nFile + 9; in zipfileStep()
11486 if( (rc = zipfileBufferGrow(&p->body, nByte)) ) goto zipfile_step_out; in zipfileStep()
11497 nByte = ZIPFILE_CDS_FIXED_SZ + e.cds.nFile + 9; in zipfileStep()
11498 if( (rc = zipfileBufferGrow(&p->cds, nByte)) ) goto zipfile_step_out; in zipfileStep()
12091 static void *idxMalloc(int *pRc, int nByte){ in idxMalloc() argument
12094 assert( nByte>0 ); in idxMalloc()
12095 pRet = sqlite3_malloc(nByte); in idxMalloc()
12097 memset(pRet, 0, nByte); in idxMalloc()
12618 int nByte; in idxGetTableInfo() local
12627 nByte = sizeof(IdxTable) + nTab + 1; in idxGetTableInfo()
12636 nByte += 1 + STRLEN(zCol); in idxGetTableInfo()
12641 nByte += 1 + STRLEN(zColSeq); in idxGetTableInfo()
12648 nByte += sizeof(IdxColumn) * nCol; in idxGetTableInfo()
12650 pNew = idxMalloc(&rc, nByte); in idxGetTableInfo()
13412 int nByte; /* Bytes of space allocated at z */ member
13473 int nByte = sqlite3_value_bytes(argv[1]); in idxRemFunc() local
13475 if( nByte>pSlot->nByte ){ in idxRemFunc()
13476 char *zNew = (char*)sqlite3_realloc(pSlot->z, nByte*2); in idxRemFunc()
13481 pSlot->nByte = nByte*2; in idxRemFunc()
13484 pSlot->n = nByte; in idxRemFunc()
13487 if( pData ) memcpy(pSlot->z, pData, nByte); in idxRemFunc()
13490 memcpy(pSlot->z, pData, nByte); in idxRemFunc()
13671 int nByte = sizeof(struct IdxRemCtx) + (sizeof(struct IdxRemSlot) * nMax); in idxPopulateStat1() local
13672 pCtx = (struct IdxRemCtx*)idxMalloc(&rc, nByte); in idxPopulateStat1()
16801 static void *recoverMalloc(sqlite3_recover *p, i64 nByte){ in recoverMalloc() argument
16803 assert( nByte>0 ); in recoverMalloc()
16805 pRet = sqlite3_malloc64(nByte); in recoverMalloc()
16807 memset(pRet, 0, nByte); in recoverMalloc()
16857 int nByte = sizeof(RecoverBitmap) + nElem*sizeof(u32); in recoverBitmapAlloc() local
16858 RecoverBitmap *pRet = (RecoverBitmap*)recoverMalloc(p, nByte); in recoverBitmapAlloc()
17524 int nByte = 0; in recoverAddTable() local
17527 nByte += (sqlite3_column_bytes(pStmt, 1)+1); in recoverAddTable()
17529 nByte += sizeof(RecoverTable) + nCol*sizeof(RecoverColumn) + nName+1; in recoverAddTable()
17532 pNew = recoverMalloc(p, nByte); in recoverAddTable()
18131 int nByte = 0; in recoverWriteDataInit() local
18141 nByte = sizeof(sqlite3_value*) * (p1->nMax+1); in recoverWriteDataInit()
18142 p1->apVal = (sqlite3_value**)recoverMalloc(p, nByte); in recoverWriteDataInit()
18574 int nByte = 0; in recoverIsValidPage() local
18577 nByte = recoverGetU16(&a[iFree+2]); in recoverIsValidPage()
18578 if( iFree+nByte>n || nByte<4 ) return 0; in recoverIsValidPage()
18579 if( iNext && iNext<iFree+nByte ) return 0; in recoverIsValidPage()
18580 memset(&aUsed[iFree], 0xFF, nByte); in recoverIsValidPage()
18594 int nByte = 0; in recoverIsValidPage() local
18599 if( eType==0x05 || eType==0x02 ) nByte += 4; in recoverIsValidPage()
18600 nByte += recoverGetVarint(&a[iOff+nByte], &nPayload); in recoverIsValidPage()
18603 nByte += recoverGetVarint(&a[iOff+nByte], &dummy); in recoverIsValidPage()
18611 nByte += nPayload; in recoverIsValidPage()
18613 nByte += K+4; in recoverIsValidPage()
18615 nByte += M+4; in recoverIsValidPage()
18619 if( iOff+nByte>n ){ in recoverIsValidPage()
18622 for(iByte=iOff; iByte<(iOff+nByte); iByte++){ in recoverIsValidPage()
18741 int nByte = (nSz>=((iBlk+1)*nMax)) ? nMax : (nSz % nMax); in recoverVfsDetectPagesize() local
18743 rc = pFd->pMethods->xRead(pFd, aPg, nByte, iBlk*nMax); in recoverVfsDetectPagesize()
18774 static int recoverVfsRead(sqlite3_file *pFd, void *aBuf, int nByte, i64 iOff){ in recoverVfsRead() argument
18778 rc = pFd->pMethods->xRead(pFd, aBuf, nByte, iOff); in recoverVfsRead()
18779 if( nByte==16 ){ in recoverVfsRead()
18782 if( rc==SQLITE_OK && iOff==0 && nByte>=108 ){ in recoverVfsRead()
18853 p->pgsz = nByte; in recoverVfsRead()
18854 p->pPage1Cache = (u8*)recoverMalloc(p, nByte*2); in recoverVfsRead()
18856 p->pPage1Disk = &p->pPage1Cache[nByte]; in recoverVfsRead()
18857 memcpy(p->pPage1Disk, aBuf, nByte); in recoverVfsRead()
18870 memset(&((u8*)aBuf)[sizeof(aHdr)], 0, nByte-sizeof(aHdr)); in recoverVfsRead()
18872 memcpy(p->pPage1Cache, aBuf, nByte); in recoverVfsRead()
18880 rc = pFd->pMethods->xRead(pFd, aBuf, nByte, iOff); in recoverVfsRead()
18906 sqlite3_file *pFd, const void *aBuf, int nByte, i64 iOff in recoverVfsWrite() argument
18909 pFd->pMethods->xWrite(pFd, aBuf, nByte, iOff) in recoverVfsWrite()
19172 int nByte = 0; in recoverInit() local
19179 nByte = sizeof(sqlite3_recover) + nDb+1 + nUri+1; in recoverInit()
19180 pRet = (sqlite3_recover*)sqlite3_malloc(nByte); in recoverInit()
19182 memset(pRet, 0, nByte); in recoverInit()
26899 i64 nByte; /* Number of bytes in an SQL string */ in do_meta_command() local
27106 nByte = 64 /* space for "INSERT INTO", "VALUES(", ")\0" */ in do_meta_command()
27110 zSql = sqlite3_malloc64( nByte ); in do_meta_command()
27116 sqlite3_snprintf(nByte, zSql, "INSERT INTO \"%w\".\"%w\" VALUES(?", in do_meta_command()
27119 sqlite3_snprintf(nByte, zSql, "INSERT INTO \"%w\" VALUES(?", zTable); in do_meta_command()
27128 assert( j<nByte ); in do_meta_command()
28360 int ii, nByte; in do_meta_command() local
28367 nByte = sizeof(pSession->azFilter[0])*(nCmd-1); in do_meta_command()
28368 pSession->azFilter = sqlite3_malloc( nByte ); in do_meta_command()