Lines Matching refs:pOut

10365   void *pOut                /* Result written here */
12535 int (*xOutput)(void *pOut, const void *pData, int nData),
12536 void *pOut
12541 int (*xOutput)(void *pOut, const void *pData, int nData),
12542 void *pOut
12557 int (*xOutput)(void *pOut, const void *pData, int nData),
12558 void *pOut
12562 int (*xOutput)(void *pOut, const void *pData, int nData),
12563 void *pOut
12570 int (*xOutput)(void *pOut, const void *pData, int nData),
12571 void *pOut
12577 int (*xOutput)(void *pOut, const void *pData, int nData),
12578 void *pOut
20982 Mem *pOut; /* The return value is stored here */ member
30360 void *pOut; /* Result returned by the thread */
30396 p->pOut = xTask(pIn);
30409 *ppOut = p->pOut;
31877 SQLITE_PRIVATE int sqlite3DecOrHexToI64(const char *z, i64 *pOut){
31888 memcpy(pOut, &u, 8);
31893 return sqlite3Atoi64(z, pOut, sqlite3Strlen30(z), SQLITE_UTF8);
32734 VList *pOut = sqlite3DbRealloc(db, pIn, nAlloc*sizeof(int));
32735 if( pOut==0 ) return pIn;
32736 if( pIn==0 ) pOut[1] = 2;
32737 pIn = pOut;
48217 unsigned char *pOut;
48236 pOut = p->aData;
48238 pOut = sqlite3_malloc64( p->sz );
48239 if( pOut ) memcpy(pOut, p->aData, p->sz);
48241 return pOut;
48252 pOut = 0;
48257 pOut = 0;
48259 pOut = sqlite3_malloc64( sz );
48260 if( pOut ){
48266 unsigned char *pTo = pOut + szPage*(sqlite3_int64)(pgno-1);
48279 return pOut;
62385 u8 *pOut /* Buffer to write page data to */
62395 return sqlite3OsRead(pWal->pWalFd, pOut, (nOut>sz ? sz : nOut), iOffset);
71622 u8 *pOut = &pSpace[4];
71677 while( ((*(pOut++) = *(pCell++))&0x80) && pCell<pStop );
71681 insertCell(pParent, pParent->nCell, pSpace, (int)(pOut-pSpace),
74140 static int btreeHeapPull(u32 *aHeap, u32 *pOut){
74143 *pOut = aHeap[1];
76078 ctx.pOut = &t;
76097 SQLITE_PRIVATE int sqlite3VdbeMemAggValue(Mem *pAccum, Mem *pOut, FuncDef *pFunc){
76104 sqlite3VdbeMemSetNull(pOut);
76105 ctx.pOut = pOut;
77061 ctx.pOut = pVal;
77908 pCtx->pOut = 0;
78509 VdbeOp *pOut, *pFirst;
78515 pFirst = pOut = &p->aOp[p->nOp];
78516 for(i=0; i<nOp; i++, aOp++, pOut++){
78517 pOut->opcode = aOp->opcode;
78518 pOut->p1 = aOp->p1;
78519 pOut->p2 = aOp->p2;
78522 pOut->p2 += p->nOp;
78524 pOut->p3 = aOp->p3;
78525 pOut->p4type = P4_NOTUSED;
78526 pOut->p4.p = 0;
78527 pOut->p5 = 0;
78529 pOut->zComment = 0;
78532 pOut->iSrcLine = iLineno+i;
79368 SQLITE_PRIVATE void sqlite3VdbePrintOp(FILE *pOut, int pc, VdbeOp *pOp){
79373 if( pOut==0 ) pOut = stdout;
79385 fprintf(pOut, zFormat1, pc,
79390 fflush(pOut);
83155 if( sqlite3VdbeMemSetStr(pCtx->pOut, z, n, enc, xDel)==SQLITE_TOOBIG ){
83182 assert( sqlite3_mutex_held(pCtx->pOut->db->mutex) );
83191 assert( sqlite3_mutex_held(pCtx->pOut->db->mutex) );
83200 assert( sqlite3_mutex_held(pCtx->pOut->db->mutex) );
83201 sqlite3VdbeMemSetDouble(pCtx->pOut, rVal);
83204 assert( sqlite3_mutex_held(pCtx->pOut->db->mutex) );
83206 sqlite3VdbeMemSetStr(pCtx->pOut, z, n, SQLITE_UTF8, SQLITE_TRANSIENT);
83210 assert( sqlite3_mutex_held(pCtx->pOut->db->mutex) );
83212 sqlite3VdbeMemSetStr(pCtx->pOut, z, n, SQLITE_UTF16NATIVE, SQLITE_TRANSIENT);
83216 assert( sqlite3_mutex_held(pCtx->pOut->db->mutex) );
83217 sqlite3VdbeMemSetInt64(pCtx->pOut, (i64)iVal);
83220 assert( sqlite3_mutex_held(pCtx->pOut->db->mutex) );
83221 sqlite3VdbeMemSetInt64(pCtx->pOut, iVal);
83224 assert( sqlite3_mutex_held(pCtx->pOut->db->mutex) );
83225 sqlite3VdbeMemSetNull(pCtx->pOut);
83233 Mem *pOut = pCtx->pOut;
83234 assert( sqlite3_mutex_held(pOut->db->mutex) );
83235 sqlite3VdbeMemRelease(pOut);
83236 pOut->flags = MEM_Null;
83237 sqlite3VdbeMemSetPointer(pOut, pPtr, zPType, xDestructor);
83240 Mem *pOut = pCtx->pOut;
83241 assert( sqlite3_mutex_held(pOut->db->mutex) );
83242 pOut->eSubtype = eSubtype & 0xff;
83243 pOut->flags |= MEM_Subtype;
83251 assert( sqlite3_mutex_held(pCtx->pOut->db->mutex) );
83261 assert( sqlite3_mutex_held(pCtx->pOut->db->mutex) );
83277 assert( sqlite3_mutex_held(pCtx->pOut->db->mutex) );
83286 assert( sqlite3_mutex_held(pCtx->pOut->db->mutex) );
83295 assert( sqlite3_mutex_held(pCtx->pOut->db->mutex) );
83300 assert( sqlite3_mutex_held(pCtx->pOut->db->mutex) );
83301 sqlite3VdbeMemCopy(pCtx->pOut, pValue);
83304 assert( sqlite3_mutex_held(pCtx->pOut->db->mutex) );
83305 sqlite3VdbeMemSetZeroBlob(pCtx->pOut, n);
83308 Mem *pOut = pCtx->pOut;
83309 assert( sqlite3_mutex_held(pOut->db->mutex) );
83310 if( n>(u64)pOut->db->aLimit[SQLITE_LIMIT_LENGTH] ){
83313 sqlite3VdbeMemSetZeroBlob(pCtx->pOut, (int)n);
83321 if( pCtx->pOut->flags & MEM_Null ){
83322 sqlite3VdbeMemSetStr(pCtx->pOut, sqlite3ErrStr(errCode), -1,
83329 assert( sqlite3_mutex_held(pCtx->pOut->db->mutex) );
83331 sqlite3VdbeMemSetStr(pCtx->pOut, "string or blob too big", -1,
83337 assert( sqlite3_mutex_held(pCtx->pOut->db->mutex) );
83338 sqlite3VdbeMemSetNull(pCtx->pOut);
83340 sqlite3OomFault(pCtx->pOut->db);
83349 assert( sqlite3_mutex_held(pCtx->pOut->db->mutex) );
83350 if( pCtx->pOut->flags & MEM_Int ){
83351 pCtx->pOut->flags &= ~MEM_Int;
83352 pCtx->pOut->flags |= MEM_IntReal;
83592 assert( p && p->pOut );
83593 return p->pOut->db;
83612 return sqlite3_value_nochange(p->pOut);
83632 rc = sqlite3OsCurrentTimeInt64(p->pOut->db->pVfs, piTime);
83666 assert( sqlite3_mutex_held(p->pOut->db->mutex) );
83688 assert( sqlite3_mutex_held(pCtx->pOut->db->mutex) );
83722 assert( sqlite3_mutex_held(pCtx->pOut->db->mutex) );
83835 Mem *pOut;
83842 pOut = &pVm->pResultSet[i];
83845 pOut = (Mem*)columnNullValue();
83847 return pOut;
83929 Mem *pOut = columnMem(pStmt, i);
83930 if( pOut->flags&MEM_Static ){
83931 pOut->flags &= ~MEM_Static;
83932 pOut->flags |= MEM_Ephem;
83935 return (sqlite3_value *)pOut;
84770 void *pOut /* OUT: Write the answer here */
84778 *(sqlite3_int64*)pOut = p->anExec[pScan->addrLoop];
84782 *(sqlite3_int64*)pOut = p->anExec[pScan->addrVisit];
84792 *(double*)pOut = r*sqlite3LogEstToInt(x);
84796 *(const char**)pOut = pScan->zName;
84801 *(const char**)pOut = p->aOp[ pScan->addrExplain ].p4.z;
84803 *(const char**)pOut = 0;
84809 *(int*)pOut = p->aOp[ pScan->addrExplain ].p1;
84811 *(int*)pOut = -1;
85752 static SQLITE_NOINLINE Mem *out2PrereleaseWithClear(Mem *pOut){
85753 sqlite3VdbeMemSetNull(pOut);
85754 pOut->flags = MEM_Int;
85755 return pOut;
85758 Mem *pOut;
85761 pOut = &p->aMem[pOp->p2];
85762 memAboutToChange(p, pOut);
85763 if( VdbeMemDynamic(pOut) ){ /*OPTIMIZATION-IF-FALSE*/
85764 return out2PrereleaseWithClear(pOut);
85766 pOut->flags = MEM_Int;
85767 return pOut;
85800 Mem *pOut = 0; /* Output operand */
86085 pOut = &aMem[pOp->p1];
86086 assert( !VdbeMemDynamic(pOut) );
86087 pOut->u.i = pOp->p3 - 1;
86088 pOut->flags = MEM_Int;
86253 pOut = out2Prerelease(p, pOp);
86254 pOut->u.i = pOp->p1;
86265 pOut = out2Prerelease(p, pOp);
86267 pOut->u.i = *pOp->p4.pI64;
86279 pOut = out2Prerelease(p, pOp);
86280 pOut->flags = MEM_Real;
86282 pOut->u.r = *pOp->p4.pReal;
86297 pOut = out2Prerelease(p, pOp);
86302 rc = sqlite3VdbeMemSetStr(pOut, pOp->p4.z, -1, SQLITE_UTF8, SQLITE_STATIC);
86305 if( SQLITE_OK!=sqlite3VdbeChangeEncoding(pOut, encoding) ) goto no_mem;
86306 assert( pOut->szMalloc>0 && pOut->zMalloc==pOut->z );
86307 assert( VdbeMemDynamic(pOut)==0 );
86308 pOut->szMalloc = 0;
86309 pOut->flags |= MEM_Static;
86314 pOp->p4.z = pOut->z;
86315 pOp->p1 = pOut->n;
86340 pOut = out2Prerelease(p, pOp);
86341 pOut->flags = MEM_Str|MEM_Static|MEM_Term;
86342 pOut->z = pOp->p4.z;
86343 pOut->n = pOp->p1;
86344 pOut->enc = encoding;
86345 UPDATE_MAX_BLOBSIZE(pOut);
86351 if( pIn3->u.i==pOp->p5 ) pOut->flags = MEM_Blob|MEM_Static|MEM_Term;
86372 pOut = out2Prerelease(p, pOp);
86375 pOut->flags = nullFlag = pOp->p1 ? (MEM_Null|MEM_Cleared) : MEM_Null;
86376 pOut->n = 0;
86378 pOut->uTemp = 0;
86381 pOut++;
86382 memAboutToChange(p, pOut);
86383 sqlite3VdbeMemSetNull(pOut);
86384 pOut->flags = nullFlag;
86385 pOut->n = 0;
86401 pOut = &aMem[pOp->p1];
86402 pOut->flags = (pOut->flags&~(MEM_Undefined|MEM_AffMask))|MEM_Null;
86414 pOut = out2Prerelease(p, pOp);
86415 sqlite3VdbeMemSetStr(pOut, pOp->p4.z, pOp->p1, 0, 0);
86416 pOut->enc = encoding;
86417 UPDATE_MAX_BLOBSIZE(pOut);
86438 pOut = &aMem[pOp->p2];
86439 if( VdbeMemDynamic(pOut) ) sqlite3VdbeMemSetNull(pOut);
86440 memcpy(pOut, pVar, MEMCELLSIZE);
86441 pOut->flags &= ~(MEM_Dyn|MEM_Ephem);
86442 pOut->flags |= MEM_Static|MEM_FromBind;
86443 UPDATE_MAX_BLOBSIZE(pOut);
86468 pOut = &aMem[p2];
86470 assert( pOut<=&aMem[(p->nMem+1 - p->nCursor)] );
86473 memAboutToChange(p, pOut);
86474 sqlite3VdbeMemMove(pOut, pIn1);
86480 aMem[i].pScopyFrom = pOut;
86485 Deephemeralize(pOut);
86486 REGISTER_TRACE(p2++, pOut);
86488 pOut++;
86506 pOut = &aMem[pOp->p2];
86507 assert( pOut!=pIn1 );
86509 memAboutToChange(p, pOut);
86510 sqlite3VdbeMemShallowCopy(pOut, pIn1, MEM_Ephem);
86511 Deephemeralize(pOut);
86513 pOut->pScopyFrom = 0;
86515 REGISTER_TRACE(pOp->p2+pOp->p3-n, pOut);
86517 pOut++;
86538 pOut = &aMem[pOp->p2];
86539 assert( pOut!=pIn1 );
86540 sqlite3VdbeMemShallowCopy(pOut, pIn1, MEM_Ephem);
86542 pOut->pScopyFrom = pIn1;
86543 pOut->mScopyFlags = pIn1->flags;
86559 pOut = &aMem[pOp->p2];
86560 sqlite3VdbeMemSetInt64(pOut, pIn1->u.i);
86666 pOut = &aMem[pOp->p3];
86667 testcase( pOut==pIn2 );
86668 assert( pIn1!=pOut );
86673 sqlite3VdbeMemSetNull(pOut);
86695 if( sqlite3VdbeMemGrow(pOut, (int)nByte+3, pOut==pIn2) ){
86698 MemSetTypeFlag(pOut, MEM_Str);
86699 if( pOut!=pIn2 ){
86700 memcpy(pOut->z, pIn2->z, pIn2->n);
86704 memcpy(&pOut->z[pIn2->n], pIn1->z, pIn1->n);
86707 pOut->z[nByte]=0;
86708 pOut->z[nByte+1] = 0;
86709 pOut->z[nByte+2] = 0;
86710 pOut->flags |= MEM_Term;
86711 pOut->n = (int)nByte;
86712 pOut->enc = encoding;
86713 UPDATE_MAX_BLOBSIZE(pOut);
86772 pOut = &aMem[pOp->p3];
86794 pOut->u.i = iB;
86795 MemSetTypeFlag(pOut, MEM_Int);
86822 pOut->u.i = rB;
86823 MemSetTypeFlag(pOut, MEM_Int);
86828 pOut->u.r = rB;
86829 MemSetTypeFlag(pOut, MEM_Real);
86835 sqlite3VdbeMemSetNull(pOut);
86903 pOut = &aMem[pOp->p3];
86905 sqlite3VdbeMemSetNull(pOut);
86939 pOut->u.i = iA;
86940 MemSetTypeFlag(pOut, MEM_Int);
87177 pOut = &aMem[pOp->p2];
87179 memAboutToChange(p, pOut);
87180 MemSetTypeFlag(pOut, MEM_Null);
87181 REGISTER_TRACE(pOp->p2, pOut);
87261 pOut = &aMem[pOp->p2];
87279 memAboutToChange(p, pOut);
87280 MemSetTypeFlag(pOut, MEM_Int);
87281 pOut->u.i = res2;
87282 REGISTER_TRACE(pOp->p2, pOut);
87476 pOut = &aMem[pOp->p3];
87478 MemSetTypeFlag(pOut, MEM_Null);
87480 pOut->u.i = v1;
87481 MemSetTypeFlag(pOut, MEM_Int);
87524 pOut = &aMem[pOp->p2];
87526 sqlite3VdbeMemSetInt64(pOut, !sqlite3VdbeBooleanValue(pIn1,0));
87528 sqlite3VdbeMemSetNull(pOut);
87542 pOut = &aMem[pOp->p2];
87543 sqlite3VdbeMemSetNull(pOut);
87545 pOut->flags = MEM_Int;
87546 pOut->u.i = ~sqlite3VdbeIntValue(pIn1);
87683 pOut = &p->aMem[pOp->p3];
87685 sqlite3VdbeMemSetNull(pOut);
87687 sqlite3VdbeMemSetInt64(pOut, sqlite3BtreeOffset(pC->uc.pCursor));
88089 pOut = &aMem[pOp->p3];
88090 memAboutToChange(p, pOut);
88265 if( nByte+nZero<=pOut->szMalloc ){
88268 pOut->z = pOut->zMalloc;
88275 if( sqlite3VdbeMemClearAndResize(pOut, (int)nByte) ){
88279 pOut->n = (int)nByte;
88280 pOut->flags = MEM_Blob;
88282 pOut->u.nZero = nZero;
88283 pOut->flags |= MEM_Zero;
88285 UPDATE_MAX_BLOBSIZE(pOut);
88286 zHdr = (u8 *)pOut->z;
88302 assert( nHdr==(int)(zHdr - (u8*)pOut->z) );
88303 assert( nByte==(int)(zPayload - (u8*)pOut->z) );
88306 REGISTER_TRACE(pOp->p3, pOut);
88334 pOut = out2Prerelease(p, pOp);
88335 pOut->u.i = nEntry;
88732 pOut = out2Prerelease(p, pOp);
88733 pOut->u.i = iMeta;
89812 pOut = out2Prerelease(p, pOp);
89813 pOut->u.i = p->apCsr[pOp->p1]->seqCount++;
89843 pOut = out2Prerelease(p, pOp);
89949 pOut->u.i = v;
90267 pOut = &aMem[pOp->p2];
90270 rc = sqlite3VdbeSorterRowkey(pC, pOut);
90271 assert( rc!=SQLITE_OK || (pOut->flags & MEM_Blob) );
90311 pOut = out2Prerelease(p, pOp);
90342 rc = sqlite3VdbeMemFromBtreeZeroOffset(pCrsr, n, pOut);
90344 if( !pOp->p3 ) Deephemeralize(pOut);
90345 UPDATE_MAX_BLOBSIZE(pOut);
90346 REGISTER_TRACE(pOp->p2, pOut);
90366 pOut = out2Prerelease(p, pOp);
90372 pOut->flags = MEM_Null;
90392 pOut->flags = MEM_Null;
90397 pOut->u.i = v;
90895 pOut = out2Prerelease(p, pOp);
90896 pOut->u.i = rowid;
91053 pOut = out2Prerelease(p, pOp);
91054 pOut->flags = MEM_Null;
91064 pOut->flags = MEM_Int;
91065 pOut->u.i = iMoved;
91158 pOut = out2Prerelease(p, pOp);
91168 pOut->u.i = pgno;
91641 pOut = out2Prerelease(p, pOp);
91644 sqlite3VdbeMemShallowCopy(pOut, pIn, MEM_Ephem);
91768 pOut = out2Prerelease(p, pOp);
91780 pOut->u.i = -1;
91782 pOut->u.i = x;
91875 pCtx->pOut = (Mem*)&(pCtx->argv[n]);
91876 sqlite3VdbeMemInit(pCtx->pOut, db, MEM_Null);
91929 assert( pCtx->pOut->flags==MEM_Null );
91941 sqlite3VdbeError(p, "%s", sqlite3_value_text(pCtx->pOut));
91950 sqlite3VdbeMemRelease(pCtx->pOut);
91951 pCtx->pOut->flags = MEM_Null;
91955 assert( pCtx->pOut->flags==MEM_Null );
92075 pOut = out2Prerelease(p, pOp);
92149 pOut->flags = MEM_Str|MEM_Static|MEM_Term;
92150 pOut->z = (char *)sqlite3JournalModename(eNew);
92151 pOut->n = sqlite3Strlen30(pOut->z);
92152 pOut->enc = SQLITE_UTF8;
92153 sqlite3VdbeChangeEncoding(pOut, encoding);
92502 sContext.pOut = pDest;
92696 pOut = out2Prerelease(p, pOp);
92697 pOut->u.i = sqlite3BtreeLastPage(db->aDb[pOp->p1].pBt);
92716 pOut = out2Prerelease(p, pOp);
92723 pOut->u.i = sqlite3BtreeMaxPageCount(pBt, newMax);
92786 pOut = &aMem[pOp->p3];
92787 if( pCtx->pOut != pOut ){
92789 pCtx->pOut = pOut;
92794 memAboutToChange(p, pOut);
92801 MemSetTypeFlag(pOut, MEM_Null);
92808 sqlite3VdbeError(p, "%s", sqlite3_value_text(pOut));
92817 if( pOut->flags & (MEM_Str|MEM_Blob) ){
92818 sqlite3VdbeChangeEncoding(pOut, encoding);
92819 if( sqlite3VdbeMemTooBig(pOut) ) goto too_big;
92822 REGISTER_TRACE(pOp->p3, pOut);
92823 UPDATE_MAX_BLOBSIZE(pOut);
95535 SorterFile *pOut = &pIncr->aFile[1];
95543 vdbePmaWriterInit(pOut->pFd, &writer, pTask->pSorter->pgsz, iStart);
95562 rc2 = vdbePmaWriterFinish(&writer, &pOut->iEof);
96350 SQLITE_PRIVATE int sqlite3VdbeSorterRowkey(const VdbeCursor *pCsr, Mem *pOut){
96357 if( sqlite3VdbeMemClearAndResize(pOut, nKey) ){
96360 pOut->n = nKey;
96361 MemSetTypeFlag(pOut, MEM_Blob);
96362 memcpy(pOut->z, pKey, nKey);
138529 sqlite3_value *pOut /* Write results here, if not NULL. VACUUM INTO */
138556 if( pOut ){
138557 if( sqlite3_value_type(pOut)!=SQLITE_TEXT ){
138561 zOut = (const char*)sqlite3_value_text(pOut);
138608 if( pOut ){
138630 rc = sqlite3BtreeBeginTrans(pMain, pOut==0 ? 2 : 0, 0);
138725 assert( pOut!=0 || 1==sqlite3BtreeIsInTrans(pMain) );
138736 if( pOut==0 ){
138743 if( pOut==0 ){
138750 if( pOut==0 ){
168797 char *pOut /* Write output here */
168806 nOut += sqlite3Fts3PutVarint(&pOut[nOut], iDelta);
168807 pOut[nOut++] = 0x02;
168819 nOut += sqlite3Fts3PutVarint(&pOut[nOut], iDelta);
168822 pOut[nOut++] = 0x01;
168823 nOut += sqlite3Fts3PutVarint(&pOut[nOut], iCol);
168824 pOut[nOut++] = 0x02;
168829 pOut[nOut++] = 0x00;
170768 char *pOut = aDoclist;
170770 int res = fts3PoslistPhraseMerge(&pOut, nDist, 0, 1, &pL, &pR);
170772 nList = (int)(pOut - aDoclist);
171232 char *pOut;
171237 p2 = pOut = pPhrase->doclist.pList;
171239 &pOut, aTmp, nParam1, nParam2, paPoslist, &p2
171242 nNew = (int)(pOut - pPhrase->doclist.pList) - 1;
182747 StrBuffer *pOut /* Write output here */
182803 rc = fts3StringAppend(pOut, &zDoc[iEnd], -1);
182822 rc = fts3StringAppend(pOut, zEllipsis, -1);
182824 rc = fts3StringAppend(pOut, zDoc, iBegin);
182832 rc = fts3StringAppend(pOut, zEllipsis, -1);
182840 if( iCurrent>iPos ) rc = fts3StringAppend(pOut, &zDoc[iEnd], iBegin-iEnd);
182841 if( rc==SQLITE_OK && isHighlight ) rc = fts3StringAppend(pOut, zOpen, -1);
182842 if( rc==SQLITE_OK ) rc = fts3StringAppend(pOut, &zDoc[iBegin], iFin-iBegin);
182843 if( rc==SQLITE_OK && isHighlight ) rc = fts3StringAppend(pOut, zClose, -1);
184992 JsonString *pOut, /* Write JSON here */
184997 jsonAppendValue(pOut, aReplace[pNode->u.iReplace]);
185005 jsonAppendRaw(pOut, "null", 4);
185009 jsonAppendRaw(pOut, "true", 4);
185013 jsonAppendRaw(pOut, "false", 5);
185018 jsonAppendString(pOut, pNode->u.zJContent, pNode->n);
185025 jsonAppendRaw(pOut, pNode->u.zJContent, pNode->n);
185030 jsonAppendChar(pOut, '[');
185034 jsonAppendSeparator(pOut);
185035 jsonRenderNode(&pNode[j], pOut, aReplace);
185043 jsonAppendChar(pOut, ']');
185048 jsonAppendChar(pOut, '{');
185052 jsonAppendSeparator(pOut);
185053 jsonRenderNode(&pNode[j], pOut, aReplace);
185054 jsonAppendChar(pOut, ':');
185055 jsonRenderNode(&pNode[j+1], pOut, aReplace);
185063 jsonAppendChar(pOut, '}');
191013 sqlite3_str *pOut;
191027 pOut = sqlite3_str_new(0);
191033 if( ii>0 ) sqlite3_str_append(pOut, " ", 1);
191034 sqlite3_str_appendf(pOut, "{%lld", cell.iRowid);
191037 sqlite3_str_appendf(pOut, " %g", (double)cell.aCoord[jj].f);
191039 sqlite3_str_appendf(pOut, " %d", cell.aCoord[jj].i);
191042 sqlite3_str_append(pOut, "}", 1);
191044 errCode = sqlite3_str_errcode(pOut);
191045 sqlite3_result_text(ctx, sqlite3_str_finish(pOut), -1, sqlite3_free);
191808 GeoPoly *pOut;
191811 pOut = sqlite3_malloc64( GEOPOLY_SZ((sqlite3_int64)s.nVertex) );
191813 if( pOut==0 ) goto parse_json_err;
191814 pOut->nVertex = s.nVertex;
191815 memcpy(pOut->a, s.a, s.nVertex*2*sizeof(GeoCoord));
191816 pOut->hdr[0] = *(unsigned char*)&x;
191817 pOut->hdr[1] = (s.nVertex>>16)&0xff;
191818 pOut->hdr[2] = (s.nVertex>>8)&0xff;
191819 pOut->hdr[3] = s.nVertex&0xff;
191822 return pOut;
192169 GeoPoly *pOut = 0;
192197 pOut = sqlite3_realloc64(p, GEOPOLY_SZ(4));
192198 if( pOut==0 ){
192204 pOut->nVertex = 4;
192206 pOut->hdr[0] = *(unsigned char*)&ii;
192207 pOut->hdr[1] = 0;
192208 pOut->hdr[2] = 0;
192209 pOut->hdr[3] = 4;
192210 GeoX(pOut,0) = mnX;
192211 GeoY(pOut,0) = mnY;
192212 GeoX(pOut,1) = mxX;
192213 GeoY(pOut,1) = mnY;
192214 GeoX(pOut,2) = mxX;
192215 GeoY(pOut,2) = mxY;
192216 GeoX(pOut,3) = mnX;
192217 GeoY(pOut,3) = mxY;
192226 return pOut;
203905 int (*xOutput)(void *pOut, const void *pData, int nData),
203906 void *pOut, /* First argument for xOutput */
203989 rc = xOutput(pOut, (void*)buf.aBuf, buf.nBuf);
204011 rc = xOutput(pOut, (void*)buf.aBuf, buf.nBuf);
204041 int (*xOutput)(void *pOut, const void *pData, int nData),
204042 void *pOut
204044 return sessionGenerateChangeset(pSession, 0, xOutput, pOut, 0, 0);
204052 int (*xOutput)(void *pOut, const void *pData, int nData),
204053 void *pOut
204055 return sessionGenerateChangeset(pSession, 1, xOutput, pOut, 0, 0);
204817 int (*xOutput)(void *pOut, const void *pData, int nData),
204818 void *pOut,
204948 rc = xOutput(pOut, sOut.aBuf, sOut.nBuf);
204960 rc = xOutput(pOut, sOut.aBuf, sOut.nBuf);
204996 int (*xOutput)(void *pOut, const void *pData, int nData),
204997 void *pOut
205007 rc = sessionChangesetInvert(&sInput, xOutput, pOut, 0, 0);
206182 u8 *pOut = pNew->aRecord;
206186 *pOut++ = 0;
206188 *pOut++ = 0xFF;
206190 memcpy(pOut, pIn, nIn);
206191 pOut += nIn;
206195 pNew->nRecord = pOut - pNew->aRecord;
206209 u8 *pOut;
206214 pOut = pNew->aRecord = (u8*)&pNew[1];
206220 *pOut++ = 0xFF;
206222 memcpy(pOut, a1, n1);
206223 pOut += n1;
206225 memcpy(pOut, a2, n2);
206226 pOut += n2;
206231 pNew->nRecord = pOut - pNew->aRecord;
206460 int (*xOutput)(void *pOut, const void *pData, int nData),
206461 void *pOut,
206485 rc = xOutput(pOut, buf.aBuf, buf.nBuf);
206494 if( buf.nBuf>0 ) rc = xOutput(pOut, buf.aBuf, buf.nBuf);
206574 int (*xOutput)(void *pOut, const void *pData, int nData),
206575 void *pOut
206577 return sessionChangegroupOutput(pGrp, xOutput, pOut, 0, 0);
206627 int (*xOutput)(void *pOut, const void *pData, int nData),
206628 void *pOut
206641 rc = sqlite3changegroup_output_strm(pGrp, xOutput, pOut);
206671 u8 *pOut = &pBuf->aBuf[pBuf->nBuf];
206676 memcpy(pOut, a2, nn2);
206677 pOut += nn2;
206679 memcpy(pOut, a1, nn1);
206680 pOut += nn1;
206686 pBuf->nBuf = pOut-pBuf->aBuf;
206720 u8 *pOut = &pBuf->aBuf[pBuf->nBuf];
206725 *pOut++ = SQLITE_UPDATE;
206726 *pOut++ = pIter->bIndirect;
206732 memcpy(pOut, a1, n1);
206733 pOut += n1;
206736 memcpy(pOut, a2, n2);
206737 pOut += n2;
206739 *pOut++ = '\0';
206750 memcpy(pOut, a1, n1);
206751 pOut += n1;
206753 *pOut++ = '\0';
206758 pBuf->nBuf = (pOut - pBuf->aBuf);
206781 int (*xOutput)(void *pOut, const void *pData, int nData),
206782 void *pOut, /* Context for xOutput callback */
206881 rc = xOutput(pOut, sOut.aBuf, sOut.nBuf);
206895 rc = xOutput(pOut, sOut.aBuf, sOut.nBuf);
206967 int (*xOutput)(void *pOut, const void *pData, int nData),
206968 void *pOut
206974 rc = sessionRebase(p, pIter, xOutput, pOut, 0, 0);
212576 Fts5Buffer *pOut; /* Output poslist */
212632 a[i].pOut = pPoslist;
212662 if( a[i].pOut->n==0 || iPos!=pWriter->iPrev ){
212663 sqlite3Fts5PoslistWriterAppend(a[i].pOut, pWriter, iPos);
212679 int bRet = a[0].pOut->n>0;
216640 Fts5StructureLevel *pOut = &pStruct->aLevel[iPromote];
216642 if( pOut->nMerge==0 ){
216651 memcpy(pOut->aSeg, &pLvl->aSeg[is], sizeof(Fts5StructureSegment));
216652 pOut->nSeg++;