Lines Matching refs:nByte

518 static void *oomMalloc(int nByte){  in oomMalloc()  argument
527 return defaultMalloc(nByte); in oomMalloc()
1890 int nByte = sqlite3_value_bytes(argv[0]); in sha3Func() local
1905 SHA3Update(&cx, sqlite3_value_blob(argv[0]), nByte); in sha3Func()
1907 SHA3Update(&cx, sqlite3_value_text(argv[0]), nByte); in sha3Func()
2783 sqlite3_int64 nByte = nNew*sizeof(FsdirLevel); in fsdirNext() local
2784 FsdirLevel *aNew = (FsdirLevel*)sqlite3_realloc64(pCur->aLvl, nByte); in fsdirNext()
3735 static void apndDlError(sqlite3_vfs*, int nByte, char *zErrMsg);
3738 static int apndRandomness(sqlite3_vfs*, int nByte, char *zOut);
4107 static void apndDlError(sqlite3_vfs *pVfs, int nByte, char *zErrMsg){ in apndDlError() argument
4108 ORIGVFS(pVfs)->xDlError(ORIGVFS(pVfs), nByte, zErrMsg); in apndDlError()
4116 static int apndRandomness(sqlite3_vfs *pVfs, int nByte, char *zBufOut){ in apndRandomness() argument
4117 return ORIGVFS(pVfs)->xRandomness(ORIGVFS(pVfs), nByte, zBufOut); in apndRandomness()
4721 int nByte = sizeof(ZipfileTab) + ZIPFILE_BUFFER_SIZE; in zipfileConnect() local
4749 pNew = (ZipfileTab*)sqlite3_malloc64((sqlite3_int64)nByte+nFile); in zipfileConnect()
4751 memset(pNew, 0, nByte+nFile); in zipfileConnect()
5058 u16 nByte = zipfileRead16(p); in zipfileScanExtra() local
5071 p += nByte; in zipfileScanExtra()
6295 static int zipfileBufferGrow(ZipfileBuffer *pBuf, int nByte){ in zipfileBufferGrow() argument
6296 if( pBuf->n+nByte>pBuf->nAlloc ){ in zipfileBufferGrow()
6299 int nReq = pBuf->n + nByte; in zipfileBufferGrow()
6344 int nByte; in zipfileStep() local
6458 nByte = ZIPFILE_LFH_FIXED_SZ + e.cds.nFile + 9; in zipfileStep()
6459 if( (rc = zipfileBufferGrow(&p->body, nByte)) ) goto zipfile_step_out; in zipfileStep()
6470 nByte = ZIPFILE_CDS_FIXED_SZ + e.cds.nFile + 9; in zipfileStep()
6471 if( (rc = zipfileBufferGrow(&p->cds, nByte)) ) goto zipfile_step_out; in zipfileStep()
7036 static void *idxMalloc(int *pRc, int nByte){ in idxMalloc() argument
7039 assert( nByte>0 ); in idxMalloc()
7040 pRet = sqlite3_malloc(nByte); in idxMalloc()
7042 memset(pRet, 0, nByte); in idxMalloc()
7562 int nByte = sizeof(IdxTable) + nTab + 1; in idxGetTableInfo() local
7570 nByte += 1 + STRLEN(zCol); in idxGetTableInfo()
7574 nByte += 1 + STRLEN(zCol); in idxGetTableInfo()
7580 nByte += sizeof(IdxColumn) * nCol; in idxGetTableInfo()
7582 pNew = idxMalloc(&rc, nByte); in idxGetTableInfo()
8293 int nByte; /* Bytes of space allocated at z */ member
8354 int nByte = sqlite3_value_bytes(argv[1]); in idxRemFunc() local
8355 if( nByte>pSlot->nByte ){ in idxRemFunc()
8356 char *zNew = (char*)sqlite3_realloc(pSlot->z, nByte*2); in idxRemFunc()
8361 pSlot->nByte = nByte*2; in idxRemFunc()
8364 pSlot->n = nByte; in idxRemFunc()
8366 memcpy(pSlot->z, sqlite3_value_blob(argv[1]), nByte); in idxRemFunc()
8368 memcpy(pSlot->z, sqlite3_value_text(argv[1]), nByte); in idxRemFunc()
8548 int nByte = sizeof(struct IdxRemCtx) + (sizeof(struct IdxRemSlot) * nMax); in idxPopulateStat1() local
8549 pCtx = (struct IdxRemCtx*)idxMalloc(&rc, nByte); in idxPopulateStat1()
15072 static void *shellMalloc(int *pRc, sqlite3_int64 nByte){ in shellMalloc() argument
15075 pRet = sqlite3_malloc64(nByte); in shellMalloc()
15079 memset(pRet, 0, nByte); in shellMalloc()
16382 int nByte; /* Number of bytes in an SQL string */ in do_meta_command() local
16526 nByte = strlen30(zSql); in do_meta_command()
16573 zSql = sqlite3_malloc64( nByte*2 + 20 + nCol*2 ); in do_meta_command()
16578 sqlite3_snprintf(nByte+20, zSql, "INSERT INTO \"%w\" VALUES(?", zTable); in do_meta_command()
17617 int ii, nByte; in do_meta_command() local
17624 nByte = sizeof(pSession->azFilter[0])*(nCmd-1); in do_meta_command()
17625 pSession->azFilter = sqlite3_malloc( nByte ); in do_meta_command()