Lines Matching refs:nByte
526 static void *oomMalloc(int nByte){ in oomMalloc() argument
535 return defaultMalloc(nByte); in oomMalloc()
1933 int nByte = sqlite3_value_bytes(argv[0]); in sha3Func() local
1948 SHA3Update(&cx, sqlite3_value_blob(argv[0]), nByte); in sha3Func()
1950 SHA3Update(&cx, sqlite3_value_text(argv[0]), nByte); in sha3Func()
2849 sqlite3_int64 nByte = nNew*sizeof(FsdirLevel); in fsdirNext() local
2850 FsdirLevel *aNew = (FsdirLevel*)sqlite3_realloc64(pCur->aLvl, nByte); in fsdirNext()
3852 static void apndDlError(sqlite3_vfs*, int nByte, char *zErrMsg);
3855 static int apndRandomness(sqlite3_vfs*, int nByte, char *zOut);
4287 static void apndDlError(sqlite3_vfs *pVfs, int nByte, char *zErrMsg){ in apndDlError() argument
4288 ORIGVFS(pVfs)->xDlError(ORIGVFS(pVfs), nByte, zErrMsg); in apndDlError()
4296 static int apndRandomness(sqlite3_vfs *pVfs, int nByte, char *zBufOut){ in apndRandomness() argument
4297 return ORIGVFS(pVfs)->xRandomness(ORIGVFS(pVfs), nByte, zBufOut); in apndRandomness()
7089 int nByte = sizeof(ZipfileTab) + ZIPFILE_BUFFER_SIZE; in zipfileConnect() local
7117 pNew = (ZipfileTab*)sqlite3_malloc64((sqlite3_int64)nByte+nFile); in zipfileConnect()
7119 memset(pNew, 0, nByte+nFile); in zipfileConnect()
7429 u16 nByte = zipfileRead16(p); in zipfileScanExtra() local
7442 p += nByte; in zipfileScanExtra()
8657 static int zipfileBufferGrow(ZipfileBuffer *pBuf, int nByte){ in zipfileBufferGrow() argument
8658 if( pBuf->n+nByte>pBuf->nAlloc ){ in zipfileBufferGrow()
8661 int nReq = pBuf->n + nByte; in zipfileBufferGrow()
8706 int nByte; in zipfileStep() local
8820 nByte = ZIPFILE_LFH_FIXED_SZ + e.cds.nFile + 9; in zipfileStep()
8821 if( (rc = zipfileBufferGrow(&p->body, nByte)) ) goto zipfile_step_out; in zipfileStep()
8832 nByte = ZIPFILE_CDS_FIXED_SZ + e.cds.nFile + 9; in zipfileStep()
8833 if( (rc = zipfileBufferGrow(&p->cds, nByte)) ) goto zipfile_step_out; in zipfileStep()
9419 static void *idxMalloc(int *pRc, int nByte){ in idxMalloc() argument
9422 assert( nByte>0 ); in idxMalloc()
9423 pRet = sqlite3_malloc(nByte); in idxMalloc()
9425 memset(pRet, 0, nByte); in idxMalloc()
9945 int nByte = sizeof(IdxTable) + nTab + 1; in idxGetTableInfo() local
9955 nByte += 1 + STRLEN(zCol); in idxGetTableInfo()
9960 nByte += 1 + STRLEN(zColSeq); in idxGetTableInfo()
9967 nByte += sizeof(IdxColumn) * nCol; in idxGetTableInfo()
9969 pNew = idxMalloc(&rc, nByte); in idxGetTableInfo()
10722 int nByte; /* Bytes of space allocated at z */ member
10783 int nByte = sqlite3_value_bytes(argv[1]); in idxRemFunc() local
10784 if( nByte>pSlot->nByte ){ in idxRemFunc()
10785 char *zNew = (char*)sqlite3_realloc(pSlot->z, nByte*2); in idxRemFunc()
10790 pSlot->nByte = nByte*2; in idxRemFunc()
10793 pSlot->n = nByte; in idxRemFunc()
10795 memcpy(pSlot->z, sqlite3_value_blob(argv[1]), nByte); in idxRemFunc()
10797 memcpy(pSlot->z, sqlite3_value_text(argv[1]), nByte); in idxRemFunc()
10977 int nByte = sizeof(struct IdxRemCtx) + (sizeof(struct IdxRemSlot) * nMax); in idxPopulateStat1() local
10978 pCtx = (struct IdxRemCtx*)idxMalloc(&rc, nByte); in idxPopulateStat1()
17975 static void *shellMalloc(int *pRc, sqlite3_int64 nByte){ in shellMalloc() argument
17978 pRet = sqlite3_malloc64(nByte); in shellMalloc()
17982 memset(pRet, 0, nByte); in shellMalloc()
19387 int nByte; /* Number of bytes in an SQL string */ in do_meta_command() local
19536 nByte = strlen30(zSql); in do_meta_command()
19581 zSql = sqlite3_malloc64( nByte*2 + 20 + nCol*2 ); in do_meta_command()
19586 sqlite3_snprintf(nByte+20, zSql, "INSERT INTO \"%w\" VALUES(?", zTable); in do_meta_command()
20708 int ii, nByte; in do_meta_command() local
20715 nByte = sizeof(pSession->azFilter[0])*(nCmd-1); in do_meta_command()
20716 pSession->azFilter = sqlite3_malloc( nByte ); in do_meta_command()