Lines Matching refs:Mem
3624 typedef struct Mem sqlite3_value;
9654 typedef struct Mem Mem; typedef
9678 Mem *pMem; /* Used when p4type is P4_MEM */
10029 SQLITE_PRIVATE int sqlite3MemCompare(const Mem*, const Mem*, const CollSeq*);
11699 Mem *aMem; /* Values */
14637 Mem *aMem; /* Array of memory cells for parent frame */
14653 #define VdbeFrameMem(p) ((Mem *)&((u8 *)p)[ROUND8(sizeof(VdbeFrame))])
14665 struct Mem { struct
14685 Mem *pScopyFrom; /* This Mem is a shallow copy of pScopyFrom */ argument
14774 Mem *pOut; /* The return value is stored here */
14776 Mem *pMem; /* Memory cell used to store aggregate context */
14821 Mem *aMem; /* The memory locations */
14822 Mem **apArg; /* Arguments to currently executing user function */
14823 Mem *aColName; /* Column names to return */
14824 Mem *pResultSet; /* Pointer to an array of results */
14833 Mem *aVar; /* Values for the OP_Variable opcode. */
14903 SQLITE_PRIVATE u32 sqlite3VdbeSerialType(Mem*, int);
14904 SQLITE_PRIVATE u32 sqlite3VdbeSerialPut(unsigned char*, Mem*, u32);
14905 SQLITE_PRIVATE u32 sqlite3VdbeSerialGet(const unsigned char*, u32, Mem*);
14914 SQLITE_PRIVATE int sqlite3VdbeChangeEncoding(Mem *, int);
14915 SQLITE_PRIVATE int sqlite3VdbeMemTooBig(Mem*);
14916 SQLITE_PRIVATE int sqlite3VdbeMemCopy(Mem*, const Mem*);
14917 SQLITE_PRIVATE void sqlite3VdbeMemShallowCopy(Mem*, const Mem*, int);
14918 SQLITE_PRIVATE void sqlite3VdbeMemMove(Mem*, Mem*);
14919 SQLITE_PRIVATE int sqlite3VdbeMemNulTerminate(Mem*);
14920 SQLITE_PRIVATE int sqlite3VdbeMemSetStr(Mem*, const char*, int, u8, void(*)(void*));
14921 SQLITE_PRIVATE void sqlite3VdbeMemSetInt64(Mem*, i64);
14925 SQLITE_PRIVATE void sqlite3VdbeMemSetDouble(Mem*, double);
14927 SQLITE_PRIVATE void sqlite3VdbeMemInit(Mem*,sqlite3*,u16);
14928 SQLITE_PRIVATE void sqlite3VdbeMemSetNull(Mem*);
14929 SQLITE_PRIVATE void sqlite3VdbeMemSetZeroBlob(Mem*,int);
14930 SQLITE_PRIVATE void sqlite3VdbeMemSetRowSet(Mem*);
14931 SQLITE_PRIVATE int sqlite3VdbeMemMakeWriteable(Mem*);
14932 SQLITE_PRIVATE int sqlite3VdbeMemStringify(Mem*, u8, u8);
14933 SQLITE_PRIVATE i64 sqlite3VdbeIntValue(Mem*);
14934 SQLITE_PRIVATE int sqlite3VdbeMemIntegerify(Mem*);
14935 SQLITE_PRIVATE double sqlite3VdbeRealValue(Mem*);
14936 SQLITE_PRIVATE void sqlite3VdbeIntegerAffinity(Mem*);
14937 SQLITE_PRIVATE int sqlite3VdbeMemRealify(Mem*);
14938 SQLITE_PRIVATE int sqlite3VdbeMemNumerify(Mem*);
14939 SQLITE_PRIVATE void sqlite3VdbeMemCast(Mem*,u8,u8);
14940 SQLITE_PRIVATE int sqlite3VdbeMemFromBtree(BtCursor*,u32,u32,int,Mem*);
14941 SQLITE_PRIVATE void sqlite3VdbeMemRelease(Mem *p);
14944 SQLITE_PRIVATE int sqlite3VdbeMemFinalize(Mem*, FuncDef*);
14946 SQLITE_PRIVATE int sqlite3VdbeMemGrow(Mem *pMem, int n, int preserve);
14947 SQLITE_PRIVATE int sqlite3VdbeMemClearAndResize(Mem *pMem, int n);
14956 SQLITE_PRIVATE int sqlite3VdbeSorterRowkey(const VdbeCursor *, Mem *);
14959 SQLITE_PRIVATE int sqlite3VdbeSorterWrite(const VdbeCursor *, Mem *);
14960 SQLITE_PRIVATE int sqlite3VdbeSorterCompare(const VdbeCursor *, Mem *, int, int *);
14971 SQLITE_PRIVATE void sqlite3VdbeMemAboutToChange(Vdbe*,Mem*);
14972 SQLITE_PRIVATE int sqlite3VdbeCheckMemInvariants(Mem*);
14981 SQLITE_PRIVATE int sqlite3VdbeMemTranslate(Mem*, u8);
14984 SQLITE_PRIVATE void sqlite3VdbeMemPrettyPrint(Mem *pMem, char *zBuf);
14986 SQLITE_PRIVATE int sqlite3VdbeMemHandleBom(Mem *pMem);
14989 SQLITE_PRIVATE int sqlite3VdbeMemExpandBlob(Mem *);
23096 SQLITE_PRIVATE SQLITE_NOINLINE int sqlite3VdbeMemTranslate(Mem *pMem, u8 desiredEnc){
23239 SQLITE_PRIVATE int sqlite3VdbeMemHandleBom(Mem *pMem){
23332 Mem m;
63114 SQLITE_PRIVATE int sqlite3VdbeCheckMemInvariants(Mem *p){
63167 SQLITE_PRIVATE int sqlite3VdbeChangeEncoding(Mem *pMem, int desiredEnc){
63202 SQLITE_PRIVATE SQLITE_NOINLINE int sqlite3VdbeMemGrow(Mem *pMem, int n, int bPreserve){
63258 SQLITE_PRIVATE int sqlite3VdbeMemClearAndResize(Mem *pMem, int szNew){
63276 SQLITE_PRIVATE int sqlite3VdbeMemMakeWriteable(Mem *pMem){
63303 SQLITE_PRIVATE int sqlite3VdbeMemExpandBlob(Mem *pMem){
63331 static SQLITE_NOINLINE int vdbeMemAddTerminator(Mem *pMem){
63344 SQLITE_PRIVATE int sqlite3VdbeMemNulTerminate(Mem *pMem){
63369 SQLITE_PRIVATE int sqlite3VdbeMemStringify(Mem *pMem, u8 enc, u8 bForce){
63413 SQLITE_PRIVATE int sqlite3VdbeMemFinalize(Mem *pMem, FuncDef *pFunc){
63417 Mem t;
63445 static SQLITE_NOINLINE void vdbeMemClearExternAndSetNull(Mem *p){
63475 static SQLITE_NOINLINE void vdbeMemClear(Mem *p){
63496 SQLITE_PRIVATE void sqlite3VdbeMemRelease(Mem *p){
63544 SQLITE_PRIVATE i64 sqlite3VdbeIntValue(Mem *pMem){
63569 SQLITE_PRIVATE double sqlite3VdbeRealValue(Mem *pMem){
63591 SQLITE_PRIVATE void sqlite3VdbeIntegerAffinity(Mem *pMem){
63619 SQLITE_PRIVATE int sqlite3VdbeMemIntegerify(Mem *pMem){
63633 SQLITE_PRIVATE int sqlite3VdbeMemRealify(Mem *pMem){
63650 SQLITE_PRIVATE int sqlite3VdbeMemNumerify(Mem *pMem){
63674 SQLITE_PRIVATE void sqlite3VdbeMemCast(Mem *pMem, u8 aff, u8 encoding){
63716 SQLITE_PRIVATE void sqlite3VdbeMemInit(Mem *pMem, sqlite3 *db, u16 flags){
63736 SQLITE_PRIVATE void sqlite3VdbeMemSetNull(Mem *pMem){
63744 sqlite3VdbeMemSetNull((Mem*)p);
63751 SQLITE_PRIVATE void sqlite3VdbeMemSetZeroBlob(Mem *pMem, int n){
63766 static SQLITE_NOINLINE void vdbeReleaseAndSetInt64(Mem *pMem, i64 val){
63776 SQLITE_PRIVATE void sqlite3VdbeMemSetInt64(Mem *pMem, i64 val){
63790 SQLITE_PRIVATE void sqlite3VdbeMemSetDouble(Mem *pMem, double val){
63803 SQLITE_PRIVATE void sqlite3VdbeMemSetRowSet(Mem *pMem){
63825 SQLITE_PRIVATE int sqlite3VdbeMemTooBig(Mem *p){
63846 SQLITE_PRIVATE void sqlite3VdbeMemAboutToChange(Vdbe *pVdbe, Mem *pMem){
63848 Mem *pX;
63862 #define MEMCELLSIZE offsetof(Mem,zMalloc)
63870 SQLITE_PRIVATE void sqlite3VdbeMemShallowCopy(Mem *pTo, const Mem *pFrom, int srcType){
63886 SQLITE_PRIVATE int sqlite3VdbeMemCopy(Mem *pTo, const Mem *pFrom){
63910 SQLITE_PRIVATE void sqlite3VdbeMemMove(Mem *pTo, Mem *pFrom){
63916 memcpy(pTo, pFrom, sizeof(Mem));
63937 Mem *pMem, /* Memory cell to set to string value */
64041 Mem *pMem /* OUT: Return data in this Mem structure. */
64153 Mem *p = sqlite3DbMallocZero(db, sizeof(*p));
64194 nByte = sizeof(Mem) * nCol + ROUND8(sizeof(UnpackedRecord));
64201 pRec->aMem = (Mem *)((u8*)pRec + ROUND8(sizeof(UnpackedRecord)));
64577 sqlite3VdbeMemSetNull((Mem*)pVal);
64588 rc = sqlite3VdbeMemCopy((Mem*)pVal, &v->aVar[iBindVar-1]);
64699 Mem *pMem = *ppVal; /* Write result into this Mem object */
64734 Mem *aMem = pRec->aMem;
64755 if( v ) sqlite3VdbeMemSetStr((Mem *)v, z, n, enc, xDel);
64763 sqlite3VdbeMemRelease((Mem *)v);
64764 sqlite3DbFree(((Mem*)v)->db, v);
64772 Mem *p = (Mem*)pVal;
65511 Mem *p = (Mem*)p4;
65885 Mem *pMem = pOp->p4.pMem;
66039 static void releaseMemArray(Mem *p, int N){
66041 Mem *pEnd = &p[N];
66089 Mem *aMem = VdbeFrameMem(p);
66120 Mem *pSub = 0; /* Memory cell hold array of subprogs */
66124 Mem *pMem = &p->aMem[1]; /* First Mem of result set */
66504 p->aMem = allocSpace(p->aMem, nMem*sizeof(Mem), &zCsr, zEnd, &nByte);
66505 p->aVar = allocSpace(p->aVar, nVar*sizeof(Mem), &zCsr, zEnd, &nByte);
66506 p->apArg = allocSpace(p->apArg, nArg*sizeof(Mem*), &zCsr, zEnd, &nByte);
66675 Mem *pColName;
66683 p->aColName = pColName = (Mem*)sqlite3DbMallocZero(db, sizeof(Mem)*n );
66710 Mem *pColName;
67665 SQLITE_PRIVATE u32 sqlite3VdbeSerialType(Mem *pMem, int file_format){
67781 SQLITE_PRIVATE u32 sqlite3VdbeSerialPut(u8 *buf, Mem *pMem, u32 serial_type){
67838 Mem *pMem /* Memory cell to write value into */
67874 Mem *pMem /* Memory cell to write value into */
67981 nByte = ROUND8(sizeof(UnpackedRecord)) + sizeof(Mem)*(pKeyInfo->nField+1);
67991 p->aMem = (Mem*)&((char*)p)[ROUND8(sizeof(UnpackedRecord))];
68014 Mem *pMem = p->aMem;
68061 Mem mem1;
68184 const Mem *pMem1,
68185 const Mem *pMem2,
68197 Mem c1;
68198 Mem c2;
68220 static SQLITE_NOINLINE int sqlite3BlobCompare(const Mem *pB1, const Mem *pB2){
68236 SQLITE_PRIVATE int sqlite3MemCompare(const Mem *pMem1, const Mem *pMem2, const CollSeq *pColl){
68387 Mem *pRhs = pPKey2->aMem; /* Next field of pPKey2 to compare */
68390 Mem mem1;
68779 Mem m, v;
68860 Mem m;
68934 Mem *pMem = &v->aVar[iVar-1];
68938 sqlite3VdbeMemCopy((Mem *)pRet, pMem);
69110 Mem *p = (Mem*)pVal;
69126 return sqlite3VdbeRealValue((Mem*)pVal);
69129 return (int)sqlite3VdbeIntValue((Mem*)pVal);
69132 return sqlite3VdbeIntValue((Mem*)pVal);
69660 Mem *pMem = p->pMem;
69799 static const Mem *columnNullValue(void){
69809 static const Mem nullMem
69838 static Mem *columnMem(sqlite3_stmt *pStmt, int i){
69840 Mem *pOut;
69851 pOut = (Mem*)columnNullValue();
69933 Mem *pOut = columnMem(pStmt, i);
69973 const void *(*xFunc)(Mem*),
70014 pStmt, N, (const void*(*)(Mem*))sqlite3_value_text, COLNAME_NAME);
70019 pStmt, N, (const void*(*)(Mem*))sqlite3_value_text16, COLNAME_NAME);
70039 pStmt, N, (const void*(*)(Mem*))sqlite3_value_text, COLNAME_DECLTYPE);
70044 pStmt, N, (const void*(*)(Mem*))sqlite3_value_text16, COLNAME_DECLTYPE);
70057 pStmt, N, (const void*(*)(Mem*))sqlite3_value_text, COLNAME_DATABASE);
70062 pStmt, N, (const void*(*)(Mem*))sqlite3_value_text16, COLNAME_DATABASE);
70073 pStmt, N, (const void*(*)(Mem*))sqlite3_value_text, COLNAME_TABLE);
70078 pStmt, N, (const void*(*)(Mem*))sqlite3_value_text16, COLNAME_TABLE);
70089 pStmt, N, (const void*(*)(Mem*))sqlite3_value_text, COLNAME_COLUMN);
70094 pStmt, N, (const void*(*)(Mem*))sqlite3_value_text16, COLNAME_COLUMN);
70116 Mem *pVar;
70168 Mem *pVar;
70636 Mem *pVar; /* Value of a host parameter */
70692 Mem utf8;
70825 static void updateMaxBlobsize(Mem *p){
70942 Mem *pMem = &p->aMem[p->nMem-iCur];
70985 static void applyNumericAffinity(Mem *pRec, int bTryForInt){
71020 Mem *pRec, /* The value to apply affinity to */
71055 Mem *pMem = (Mem*)pVal;
71071 applyAffinity((Mem *)pVal, affinity, enc);
71080 static u16 SQLITE_NOINLINE computeNumericType(Mem *pMem){
71099 static u16 numericType(Mem *pMem){
71114 SQLITE_PRIVATE void sqlite3VdbeMemPrettyPrint(Mem *pMem, char *zBuf){
71196 static void memTracePrint(Mem *p){
71217 static void registerTrace(int iReg, Mem *p){
71354 static Mem *out2Prerelease(Vdbe *p, VdbeOp *pOp){
71355 Mem *pOut;
71387 Mem *aMem = p->aMem; /* Copy of p->aMem */
71388 Mem *pIn1 = 0; /* 1st input operand */
71389 Mem *pIn2 = 0; /* 2nd input operand */
71390 Mem *pIn3 = 0; /* 3rd input operand */
71391 Mem *pOut = 0; /* Output operand */
71997 Mem *pVar; /* Value being transferred */
72115 Mem *pMem;
72405 Mem *pArg;
73137 Mem *pDest; /* Where to write the extracted value */
73138 Mem sMem; /* For storing the record being decoded */
73147 Mem *pReg; /* PseudoTable input register */
73433 Mem *pRec; /* The new record */
73440 Mem *pData0; /* First field to be combined into the record */
73441 Mem *pLast; /* Last field of the record */
74682 char aTempRec[ROUND8(sizeof(UnpackedRecord)) + sizeof(Mem)*4 + 7];
74839 Mem *pMem; /* Register holding largest rowid for AUTOINCREMENT */
75001 Mem *pData; /* MEM cell holding data for the record to be inserted */
75002 Mem *pKey; /* MEM cell holding key for the record */
76082 Mem *pnErr; /* Register keeping track of errors remaining */
76239 Mem *pRt; /* Register to allocate runtime space */
76240 Mem *pMem; /* Used to iterate through memory cells */
76241 Mem *pEnd; /* Last memory cell in new array */
76285 + nMem * sizeof(Mem)
76363 Mem *pIn;
76544 Mem *pMem;
76545 Mem *pRec;
76546 Mem t;
76598 Mem *pMem;
76629 Mem *pMem; /* Write results here */
76873 Mem sMem; /* For storing the record being decoded */
76975 Mem *pQuery;
76976 Mem *pArgc;
76982 Mem **apArg;
77028 Mem *pDest;
77114 Mem *pName;
77170 Mem **apArg;
77171 Mem *pX;
79651 Mem *pVal /* Memory cell containing record */
80560 SQLITE_PRIVATE int sqlite3VdbeSorterRowkey(const VdbeCursor *pCsr, Mem *pOut){
80593 Mem *pVal, /* Value to compare to current sorter key */
97932 Mem *pArg = (Mem *)argv[0];
97933 Mem *pBest;
97936 pBest = (Mem *)sqlite3_aggregate_context(context, sizeof(*pBest));