• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-13-stable/contrib/sqlite3/

Lines Matching defs:nByte

513 static void *oomMalloc(int nByte){
522 return defaultMalloc(nByte);
1901 int nByte = sqlite3_value_bytes(argv[0]);
1916 SHA3Update(&cx, sqlite3_value_blob(argv[0]), nByte);
1918 SHA3Update(&cx, sqlite3_value_text(argv[0]), nByte);
2796 sqlite3_int64 nByte = nNew*sizeof(FsdirLevel);
2797 FsdirLevel *aNew = (FsdirLevel*)sqlite3_realloc64(pCur->aLvl, nByte);
3791 static void apndDlError(sqlite3_vfs*, int nByte, char *zErrMsg);
3794 static int apndRandomness(sqlite3_vfs*, int nByte, char *zOut);
4224 static void apndDlError(sqlite3_vfs *pVfs, int nByte, char *zErrMsg){
4225 ORIGVFS(pVfs)->xDlError(ORIGVFS(pVfs), nByte, zErrMsg);
4233 static int apndRandomness(sqlite3_vfs *pVfs, int nByte, char *zBufOut){
4234 return ORIGVFS(pVfs)->xRandomness(ORIGVFS(pVfs), nByte, zBufOut);
6215 int nByte = sizeof(ZipfileTab) + ZIPFILE_BUFFER_SIZE;
6243 pNew = (ZipfileTab*)sqlite3_malloc64((sqlite3_int64)nByte+nFile);
6245 memset(pNew, 0, nByte+nFile);
6554 u16 nByte = zipfileRead16(p);
6567 p += nByte;
7791 static int zipfileBufferGrow(ZipfileBuffer *pBuf, int nByte){
7792 if( pBuf->n+nByte>pBuf->nAlloc ){
7795 int nReq = pBuf->n + nByte;
7840 int nByte;
7954 nByte = ZIPFILE_LFH_FIXED_SZ + e.cds.nFile + 9;
7955 if( (rc = zipfileBufferGrow(&p->body, nByte)) ) goto zipfile_step_out;
7966 nByte = ZIPFILE_CDS_FIXED_SZ + e.cds.nFile + 9;
7967 if( (rc = zipfileBufferGrow(&p->cds, nByte)) ) goto zipfile_step_out;
8529 ** Allocate and return nByte bytes of zeroed memory using sqlite3_malloc().
8532 static void *idxMalloc(int *pRc, int nByte){
8535 assert( nByte>0 );
8536 pRet = sqlite3_malloc(nByte);
8538 memset(pRet, 0, nByte);
9058 int nByte = sizeof(IdxTable) + nTab + 1;
9067 nByte += 1 + STRLEN(zCol);
9071 nByte += 1 + STRLEN(zCol);
9078 nByte += sizeof(IdxColumn) * nCol;
9080 pNew = idxMalloc(&rc, nByte);
9791 int nByte; /* Bytes of space allocated at z */
9852 int nByte = sqlite3_value_bytes(argv[1]);
9853 if( nByte>pSlot->nByte ){
9854 char *zNew = (char*)sqlite3_realloc(pSlot->z, nByte*2);
9859 pSlot->nByte = nByte*2;
9862 pSlot->n = nByte;
9864 memcpy(pSlot->z, sqlite3_value_blob(argv[1]), nByte);
9866 memcpy(pSlot->z, sqlite3_value_text(argv[1]), nByte);
10046 int nByte = sizeof(struct IdxRemCtx) + (sizeof(struct IdxRemSlot) * nMax);
10047 pCtx = (struct IdxRemCtx*)idxMalloc(&rc, nByte);
16902 ** to a buffer nByte bytes in size. If an OOM error occurs, *pRc is set
16905 static void *shellMalloc(int *pRc, sqlite3_int64 nByte){
16908 pRet = sqlite3_malloc64(nByte);
16912 memset(pRet, 0, nByte);
18254 int nByte; /* Number of bytes in an SQL string */
18396 nByte = strlen30(zSql);
18441 zSql = sqlite3_malloc64( nByte*2 + 20 + nCol*2 );
18446 sqlite3_snprintf(nByte+20, zSql, "INSERT INTO \"%w\" VALUES(?", zTable);
19536 int ii, nByte;
19543 nByte = sizeof(pSession->azFilter[0])*(nCmd-1);
19544 pSession->azFilter = sqlite3_malloc( nByte );