Lines Matching refs:nByte

513 static void *oomMalloc(int nByte){  in oomMalloc()  argument
522 return defaultMalloc(nByte); in oomMalloc()
1885 int nByte = sqlite3_value_bytes(argv[0]); in sha3Func() local
1900 SHA3Update(&cx, sqlite3_value_blob(argv[0]), nByte); in sha3Func()
1902 SHA3Update(&cx, sqlite3_value_text(argv[0]), nByte); in sha3Func()
2778 sqlite3_int64 nByte = nNew*sizeof(FsdirLevel); in fsdirNext() local
2779 FsdirLevel *aNew = (FsdirLevel*)sqlite3_realloc64(pCur->aLvl, nByte); in fsdirNext()
3730 static void apndDlError(sqlite3_vfs*, int nByte, char *zErrMsg);
3733 static int apndRandomness(sqlite3_vfs*, int nByte, char *zOut);
4102 static void apndDlError(sqlite3_vfs *pVfs, int nByte, char *zErrMsg){ in apndDlError() argument
4103 ORIGVFS(pVfs)->xDlError(ORIGVFS(pVfs), nByte, zErrMsg); in apndDlError()
4111 static int apndRandomness(sqlite3_vfs *pVfs, int nByte, char *zBufOut){ in apndRandomness() argument
4112 return ORIGVFS(pVfs)->xRandomness(ORIGVFS(pVfs), nByte, zBufOut); in apndRandomness()
4716 int nByte = sizeof(ZipfileTab) + ZIPFILE_BUFFER_SIZE; in zipfileConnect() local
4744 pNew = (ZipfileTab*)sqlite3_malloc64((sqlite3_int64)nByte+nFile); in zipfileConnect()
4746 memset(pNew, 0, nByte+nFile); in zipfileConnect()
5053 u16 nByte = zipfileRead16(p); in zipfileScanExtra() local
5066 p += nByte; in zipfileScanExtra()
6290 static int zipfileBufferGrow(ZipfileBuffer *pBuf, int nByte){ in zipfileBufferGrow() argument
6291 if( pBuf->n+nByte>pBuf->nAlloc ){ in zipfileBufferGrow()
6294 int nReq = pBuf->n + nByte; in zipfileBufferGrow()
6339 int nByte; in zipfileStep() local
6453 nByte = ZIPFILE_LFH_FIXED_SZ + e.cds.nFile + 9; in zipfileStep()
6454 if( (rc = zipfileBufferGrow(&p->body, nByte)) ) goto zipfile_step_out; in zipfileStep()
6465 nByte = ZIPFILE_CDS_FIXED_SZ + e.cds.nFile + 9; in zipfileStep()
6466 if( (rc = zipfileBufferGrow(&p->cds, nByte)) ) goto zipfile_step_out; in zipfileStep()
7031 static void *idxMalloc(int *pRc, int nByte){ in idxMalloc() argument
7034 assert( nByte>0 ); in idxMalloc()
7035 pRet = sqlite3_malloc(nByte); in idxMalloc()
7037 memset(pRet, 0, nByte); in idxMalloc()
7557 int nByte = sizeof(IdxTable) + nTab + 1; in idxGetTableInfo() local
7565 nByte += 1 + STRLEN(zCol); in idxGetTableInfo()
7569 nByte += 1 + STRLEN(zCol); in idxGetTableInfo()
7575 nByte += sizeof(IdxColumn) * nCol; in idxGetTableInfo()
7577 pNew = idxMalloc(&rc, nByte); in idxGetTableInfo()
8288 int nByte; /* Bytes of space allocated at z */ member
8349 int nByte = sqlite3_value_bytes(argv[1]); in idxRemFunc() local
8350 if( nByte>pSlot->nByte ){ in idxRemFunc()
8351 char *zNew = (char*)sqlite3_realloc(pSlot->z, nByte*2); in idxRemFunc()
8356 pSlot->nByte = nByte*2; in idxRemFunc()
8359 pSlot->n = nByte; in idxRemFunc()
8361 memcpy(pSlot->z, sqlite3_value_blob(argv[1]), nByte); in idxRemFunc()
8363 memcpy(pSlot->z, sqlite3_value_text(argv[1]), nByte); in idxRemFunc()
8543 int nByte = sizeof(struct IdxRemCtx) + (sizeof(struct IdxRemSlot) * nMax); in idxPopulateStat1() local
8544 pCtx = (struct IdxRemCtx*)idxMalloc(&rc, nByte); in idxPopulateStat1()
15051 static void *shellMalloc(int *pRc, sqlite3_int64 nByte){ in shellMalloc() argument
15054 pRet = sqlite3_malloc64(nByte); in shellMalloc()
15058 memset(pRet, 0, nByte); in shellMalloc()
16361 int nByte; /* Number of bytes in an SQL string */ in do_meta_command() local
16505 nByte = strlen30(zSql); in do_meta_command()
16552 zSql = sqlite3_malloc64( nByte*2 + 20 + nCol*2 ); in do_meta_command()
16557 sqlite3_snprintf(nByte+20, zSql, "INSERT INTO \"%w\" VALUES(?", zTable); in do_meta_command()
17596 int ii, nByte; in do_meta_command() local
17603 nByte = sizeof(pSession->azFilter[0])*(nCmd-1); in do_meta_command()
17604 pSession->azFilter = sqlite3_malloc( nByte ); in do_meta_command()