/external/chromium_org/third_party/sqlite/ |
D | fts2.patch | 107 static int dlrAtEnd(DLReader *pReader){ 108 assert( pReader->nData>=0 ); 109 - return pReader->nData==0; 110 + return pReader->nData<=0; 112 static sqlite_int64 dlrDocid(DLReader *pReader){ 113 assert( !dlrAtEnd(pReader) ); 116 static const char *dlrPosData(DLReader *pReader){ 118 - int n = getVarint(pReader->pData, &iDummy); 119 + int n = getVarintSafe(pReader->pData, &iDummy, pReader->nElement); 121 assert( !dlrAtEnd(pReader) ); [all …]
|
D | sqlite-3.7.6.3-fix-out-of-scope-memory-reference.patch | 6 Fts3SegReader *pReader = 0; /* Fts3SegReader object to return */
|
/external/chromium_org/third_party/sqlite/src/ext/fts2/ |
D | fts2.c | 651 static int dlrAtEnd(DLReader *pReader){ in dlrAtEnd() argument 652 assert( pReader->nData>=0 ); in dlrAtEnd() 653 return pReader->nData<=0; in dlrAtEnd() 655 static sqlite_int64 dlrDocid(DLReader *pReader){ in dlrDocid() argument 656 assert( !dlrAtEnd(pReader) ); in dlrDocid() 657 return pReader->iDocid; in dlrDocid() 659 static const char *dlrDocData(DLReader *pReader){ in dlrDocData() argument 660 assert( !dlrAtEnd(pReader) ); in dlrDocData() 661 return pReader->pData; in dlrDocData() 663 static int dlrDocDataBytes(DLReader *pReader){ in dlrDocDataBytes() argument [all …]
|
/external/chromium_org/third_party/sqlite/src/ext/fts3/ |
D | fts3_write.c | 912 static int fts3SegReaderNext(Fts3Table *p, Fts3SegReader *pReader){ in fts3SegReaderNext() argument 917 if( !pReader->aDoclist ){ in fts3SegReaderNext() 918 pNext = pReader->aNode; in fts3SegReaderNext() 920 pNext = &pReader->aDoclist[pReader->nDoclist]; in fts3SegReaderNext() 923 if( !pNext || pNext>=&pReader->aNode[pReader->nNode] ){ in fts3SegReaderNext() 926 if( fts3SegReaderIsPending(pReader) ){ in fts3SegReaderNext() 927 Fts3HashElem *pElem = *(pReader->ppNextElem); in fts3SegReaderNext() 929 pReader->aNode = 0; in fts3SegReaderNext() 932 pReader->zTerm = (char *)fts3HashKey(pElem); in fts3SegReaderNext() 933 pReader->nTerm = fts3HashKeysize(pElem); in fts3SegReaderNext() [all …]
|
/external/libvpx/libwebm/ |
D | mkvparser.cpp | 27 long long mkvparser::ReadUInt(IMkvReader* pReader, long long pos, long& len) in ReadUInt() argument 29 assert(pReader); in ReadUInt() 47 status = pReader->Read(pos, 1, &b); in ReadUInt() 75 status = pReader->Read(pos, 1, &b); in ReadUInt() 99 IMkvReader* pReader, in GetUIntLength() argument 103 assert(pReader); in GetUIntLength() 108 int status = pReader->Length(&total, &available); in GetUIntLength() 119 status = pReader->Read(pos, 1, &b); in GetUIntLength() 142 IMkvReader* pReader, in UnserializeUInt() argument 146 assert(pReader); in UnserializeUInt() [all …]
|
D | mkvparser.hpp | 45 IMkvReader* pReader, 255 IMkvReader* const pReader); 263 IMkvReader* const pReader,
|
/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/io/ |
D | PushbackReaderTest.java | 239 PushbackReader pReader = new PushbackReader(reader, 2); in test_skip$J() local 256 numSkipped += pReader.skip(2); in test_skip$J() 257 pReader.unread('i'); in test_skip$J() 258 numSkipped += pReader.skip(2); in test_skip$J() 259 numSkipped += pReader.skip(0); in test_skip$J() 261 numSkipped += pReader.skip(-1); in test_skip$J() 270 numSkipped += pReader.skip(1); in test_skip$J() 271 numSkipped += pReader.skip(1); in test_skip$J() 272 numSkipped += pReader.skip(1); in test_skip$J() 274 long nextSkipped = pReader.skip(1); in test_skip$J()
|
/external/chromium_org/third_party/sqlite/src/ext/fts1/ |
D | fulltext.c | 224 static int readerAtEnd(DocListReader *pReader){ in readerAtEnd() argument 225 return pReader->p >= docListEnd(pReader->pDoclist); in readerAtEnd() 229 static sqlite_int64 peekDocid(DocListReader *pReader){ in peekDocid() argument 231 assert( !readerAtEnd(pReader) ); in peekDocid() 232 getVarint(pReader->p, &ret); in peekDocid() 237 static sqlite_int64 readDocid(DocListReader *pReader){ in readDocid() argument 239 assert( !readerAtEnd(pReader) ); in readDocid() 240 pReader->p += getVarint(pReader->p, &ret); in readDocid() 241 pReader->iLastPos = 0; in readDocid() 247 static int readPosition(DocListReader *pReader){ in readPosition() argument [all …]
|
D | fts1.c | 390 static int atEnd(DocListReader *pReader){ in atEnd() argument 391 return pReader->pDoclist==0 || (pReader->p >= docListEnd(pReader->pDoclist)); in atEnd() 396 static sqlite_int64 peekDocid(DocListReader *pReader){ in peekDocid() argument 398 assert( !atEnd(pReader) ); in peekDocid() 399 assert( pReader->iLastPos==-1 ); in peekDocid() 400 getVarint(pReader->p, &ret); in peekDocid() 406 static sqlite_int64 readDocid(DocListReader *pReader){ in readDocid() argument 408 assert( !atEnd(pReader) ); in readDocid() 409 assert( pReader->iLastPos==-1 ); in readDocid() 410 pReader->p += getVarint(pReader->p, &ret); in readDocid() [all …]
|
/external/sqlite/dist/orig/ |
D | sqlite3.c | 126194 static int fts3SegReaderIncrRead(Fts3SegReader *pReader){ 126198 nRead = MIN(pReader->nNode - pReader->nPopulate, FTS3_NODE_CHUNKSIZE); 126200 pReader->pBlob, 126201 &pReader->aNode[pReader->nPopulate], 126203 pReader->nPopulate 126207 pReader->nPopulate += nRead; 126208 memset(&pReader->aNode[pReader->nPopulate], 0, FTS3_NODE_PADDING); 126209 if( pReader->nPopulate==pReader->nNode ){ 126210 sqlite3_blob_close(pReader->pBlob); 126211 pReader->pBlob = 0; [all …]
|
/external/sqlite/dist/ |
D | sqlite3.c | 126242 static int fts3SegReaderIncrRead(Fts3SegReader *pReader){ 126246 nRead = MIN(pReader->nNode - pReader->nPopulate, FTS3_NODE_CHUNKSIZE); 126248 pReader->pBlob, 126249 &pReader->aNode[pReader->nPopulate], 126251 pReader->nPopulate 126255 pReader->nPopulate += nRead; 126256 memset(&pReader->aNode[pReader->nPopulate], 0, FTS3_NODE_PADDING); 126257 if( pReader->nPopulate==pReader->nNode ){ 126258 sqlite3_blob_close(pReader->pBlob); 126259 pReader->pBlob = 0; [all …]
|
/external/chromium_org/third_party/sqlite/amalgamation/ |
D | sqlite3.c | 121020 static int fts3SegReaderNext(Fts3Table *p, Fts3SegReader *pReader){ 121025 if( !pReader->aDoclist ){ 121026 pNext = pReader->aNode; 121028 pNext = &pReader->aDoclist[pReader->nDoclist]; 121031 if( !pNext || pNext>=&pReader->aNode[pReader->nNode] ){ 121034 if( fts3SegReaderIsPending(pReader) ){ 121035 Fts3HashElem *pElem = *(pReader->ppNextElem); 121037 pReader->aNode = 0; 121040 pReader->zTerm = (char *)fts3HashKey(pElem); 121041 pReader->nTerm = fts3HashKeysize(pElem); [all …]
|