Lines Matching defs:nByte

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