Home
last modified time | relevance | path

Searched refs:pMem (Results 1 – 12 of 12) sorted by relevance

/sqlite-3.40.0/src/
H A Dvdbemem.c254 pMem->z = pMem->zMalloc = sqlite3DbReallocOrFree(pMem->db, pMem->z, n); in sqlite3VdbeMemGrow()
276 memcpy(pMem->zMalloc, pMem->z, pMem->n); in sqlite3VdbeMemGrow()
283 pMem->z = pMem->zMalloc; in sqlite3VdbeMemGrow()
308 pMem->z = pMem->zMalloc; in sqlite3VdbeMemClearAndResize()
326 pMem->z[pMem->n] = 0; in vdbeMemAddTerminator()
327 pMem->z[pMem->n+1] = 0; in vdbeMemAddTerminator()
328 pMem->z[pMem->n+2] = 0; in vdbeMemAddTerminator()
384 memset(&pMem->z[pMem->n], 0, pMem->u.nZero); in sqlite3VdbeMemExpandBlob()
469 ctx.pMem = pMem; in sqlite3VdbeMemFinalize()
647 sqlite3AtoF(pMem->z, &val, pMem->n, pMem->enc); in memRealValue()
[all …]
H A Dutf.c190 assert( pMem->db==0 || sqlite3_mutex_held(pMem->db->mutex) ); in sqlite3VdbeMemTranslate()
237 pMem->n &= ~1; in sqlite3VdbeMemTranslate()
254 zIn = (u8*)pMem->z; in sqlite3VdbeMemTranslate()
347 pMem->flags = c; in sqlite3VdbeMemTranslate()
350 pMem->zMalloc = pMem->z; in sqlite3VdbeMemTranslate()
351 pMem->szMalloc = sqlite3DbMallocSize(pMem->db, pMem->z); in sqlite3VdbeMemTranslate()
382 if( pMem->n>1 ){ in sqlite3VdbeMemHandleBom()
396 pMem->n -= 2; in sqlite3VdbeMemHandleBom()
397 memmove(pMem->z, &pMem->z[2], pMem->n); in sqlite3VdbeMemHandleBom()
398 pMem->z[pMem->n] = '\0'; in sqlite3VdbeMemHandleBom()
[all …]
H A Dvdbeaux.c1809 Mem *pMem = pOp->p4.pMem; in sqlite3VdbeDisplayP4() local
1811 zP4 = pMem->z; in sqlite3VdbeDisplayP4()
3746 i64 i = pMem->u.i;
3773 pMem->u.r = (double)pMem->u.i;
3785 assert( pMem->n>=0 );
3786 n = (u32)pMem->n;
3945 pMem->n = 0; in sqlite3VdbeSerialGet()
4073 Mem *pMem = p->aMem; in sqlite3VdbeRecordUnpack() local
4088 pMem->z = 0; in sqlite3VdbeRecordUnpack()
4091 pMem++; in sqlite3VdbeRecordUnpack()
[all …]
H A Dvdbe.c284 assert( pMem->szMalloc==0 || pMem->z==pMem->zMalloc ); in allocateCursor()
287 sqlite3DbFreeNN(pMem->db, pMem->zMalloc); in allocateCursor()
289 pMem->z = pMem->zMalloc = sqlite3DbMallocRaw(pMem->db, nByte); in allocateCursor()
457 rc = sqlite3AtoF(pMem->z, &pMem->u.r, pMem->n, pMem->enc); in computeNumericType()
459 if( rc==0 && sqlite3Atoi64(pMem->z, &ix, pMem->n, pMem->enc)<=1 ){ in computeNumericType()
465 }else if( rc==1 && sqlite3Atoi64(pMem->z, &ix, pMem->n, pMem->enc)==0 ){ in computeNumericType()
481 || pMem->db==0 || pMem->db->mallocFailed ); in numericType()
7170 for(pMem=VdbeFrameMem(pFrame); pMem!=pEnd; pMem++){ in sqlite3VdbeExec()
7511 if( pCtx->pMem != pMem ){ in sqlite3VdbeExec()
7512 pCtx->pMem = pMem; in sqlite3VdbeExec()
[all …]
H A Dvdbeapi.c203 Mem *pMem = (Mem*)pVal; in sqlite3_value_subtype() local
204 return ((pMem->flags & MEM_Subtype) ? pMem->eSubtype : 0); in sqlite3_value_subtype()
973 Mem *pMem = p->pMem; in createAggContext() local
977 pMem->z = 0; in createAggContext()
982 if( pMem->z ){ in createAggContext()
986 return (void*)pMem->z; in createAggContext()
1098 return p->pMem->n; in sqlite3_aggregate_count()
1931 Mem *pMem; in sqlite3_preupdate_old() local
2036 Mem *pMem; in sqlite3_preupdate_new() local
2087 if( pMem->flags==0 ){ in sqlite3_preupdate_new()
[all …]
H A DvdbeInt.h373 Mem *pMem; /* Memory cell used to store aggregate context */ member
629 int sqlite3VdbeMemGrow(Mem *pMem, int n, int preserve);
630 int sqlite3VdbeMemClearAndResize(Mem *pMem, int n);
686 void sqlite3VdbeMemPrettyPrint(Mem *pMem, StrAccum *pStr);
690 int sqlite3VdbeMemHandleBom(Mem *pMem);
H A Dtest_bestindex.c302 sqlite3_value *pMem; in tclFilter() local
304 for(rc=sqlite3_vtab_in_first(argv[ii], &pMem); in tclFilter()
305 rc==SQLITE_OK && pMem; in tclFilter()
306 rc=sqlite3_vtab_in_next(argv[ii], &pMem) in tclFilter()
309 zVal = (const char*)sqlite3_value_text(pMem); in tclFilter()
H A Dvdbe.h57 Mem *pMem; /* Used when p4type is P4_MEM */ member
H A Dos_unix.c4829 void *pMem; in unixShmMap() local
4831 pMem = osMmap(0, nMap, in unixShmMap()
4835 if( pMem==MAP_FAILED ){ in unixShmMap()
4840 pMem = sqlite3_malloc64(nMap); in unixShmMap()
4841 if( pMem==0 ){ in unixShmMap()
4845 memset(pMem, 0, nMap); in unixShmMap()
4849 pShmNode->apRegion[pShmNode->nRegion+i] = &((char*)pMem)[szRegion*i]; in unixShmMap()
H A Dos_win.c1294 MUTEX_LOGIC( sqlite3_mutex *pMem; ) /* The memsys static mutex */ in sqlite3_win32_reset_heap()
1296 MUTEX_LOGIC( pMem = sqlite3MutexAlloc(SQLITE_MUTEX_STATIC_MEM); ) in sqlite3_win32_reset_heap()
1298 sqlite3_mutex_enter(pMem); in sqlite3_win32_reset_heap()
1325 sqlite3_mutex_leave(pMem); in sqlite3_win32_reset_heap()
H A Dsqlite.h.in1877 ** 8-byte aligned memory (pMem), the size of each page cache line (sz),
1884 ** for the sz parameter to be larger than necessary. The pMem
1888 ** ^When pMem is not NULL, SQLite will strive to use the memory provided
1890 ** a page cache line is larger than sz bytes or if all of the pMem buffer
1892 ** ^If pMem is NULL and N is non-zero, then each database connection
/sqlite-3.40.0/ext/wasm/api/
H A Dsqlite3-api-worker1.js466 let pMem;
468 pMem = sqlite3.wasm.allocFromTypedArray(byteArray);
470 pVfs, oargs.filename, pMem, byteArray.byteLength
480 if(pMem) sqlite3.wasm.dealloc(pMem);