/titanic_50/usr/src/lib/libsqlite/src/ |
H A D | hash.c | 74 static int intHash(const void *pKey, int nKey){ in intHash() argument 75 return nKey ^ (nKey<<8) ^ (nKey>>8); in intHash() 85 static int ptrHash(const void *pKey, int nKey){ 99 static int strHash(const void *pKey, int nKey){ in strHash() argument 100 return sqliteHashNoCase((const char*)pKey, nKey); in strHash() 110 static int binHash(const void *pKey, int nKey){ in binHash() argument 113 while( nKey-- > 0 ){ in binHash() 182 int h = (*xHash)(elem->pKey, elem->nKey) & (new_size-1); in rehash() 209 int nKey, in findElementGivenHash() argument 221 if( (*xCompare)(elem->pKey,elem->nKey,pKey,nKey)==0 ){ in findElementGivenHash() [all …]
|
H A D | btree_rb.c | 61 int nKey; member 124 int nKey; member 140 int nKey, 693 static int memRbtreeKeyCompare(RbtCursor* pCur, const void *pKey, int nKey, in memRbtreeKeyCompare() argument 701 if( (pCur->pNode->nKey - nIgnore) < 0 ){ in memRbtreeKeyCompare() 704 *pRes = key_compare(pCur->pNode->pKey, pCur->pNode->nKey-nIgnore, in memRbtreeKeyCompare() 705 pKey, nKey); in memRbtreeKeyCompare() 751 int nKey, in memRbtreeInsert() argument 784 memRbtreeMoveto( pCur, pKey, nKey, &match); in memRbtreeInsert() 788 pNode->nKey = nKey; in memRbtreeInsert() [all …]
|
H A D | btree.h | 74 int (*Moveto)(BtCursor*, const void *pKey, int nKey, int *pRes); 76 int (*Insert)(BtCursor*, const void *pKey, int nKey, 84 int (*KeyCompare)(BtCursor*, const void *pKey, int nKey, 124 #define sqliteBtreeMoveto(pCur, pKey, nKey, pRes)\ argument 125 (btCOps(pCur)->Moveto(pCur, pKey, nKey, pRes)) 127 #define sqliteBtreeInsert(pCur, pKey, nKey, pData, nData) \ argument 128 (btCOps(pCur)->Insert(pCur, pKey, nKey, pData, nData)) 136 #define sqliteBtreeKeyCompare(pCur, pKey, nKey, nIgnore, pRes)\ argument 137 (btCOps(pCur)->KeyCompare(pCur, pKey, nKey, nIgnore, pRes))
|
H A D | hash.h | 56 void *pKey; int nKey; /* Key associated with this element */ member 85 void *sqliteHashInsert(Hash*, const void *pKey, int nKey, void *pData); 86 void *sqliteHashFind(const Hash*, const void *pKey, int nKey); 105 #define sqliteHashKeysize(E) ((E)->nKey)
|
H A D | vdbeInt.h | 92 int nKey; /* Number of bytes in the key */ member 183 int nKey; /* Number of bytes in the key, including '\0' at end */ member 206 int nKey; /* Number of slots in aKey[] */ member
|
H A D | attach.c | 101 int nKey; in sqliteAttach() local 105 nKey = strlen(zKey); in sqliteAttach() 108 nKey = 0; in sqliteAttach() 110 sqliteCodecAttach(db, db->nDb-1, zKey, nKey); in sqliteAttach()
|
H A D | vdbe.c | 163 static int AggInsert(Agg *p, char *zKey, int nKey){ in AggInsert() argument 167 pElem = sqliteMalloc( sizeof(AggElem) + nKey + in AggInsert() 171 memcpy(pElem->zKey, zKey, nKey); in AggInsert() 172 pElem->nKey = nKey; in AggInsert() 173 pOld = sqliteHashInsert(&p->hash, pElem->zKey, pElem->nKey, pElem); in AggInsert() 2711 int nKey; /* Number of bytes in K */ in sqliteVdbeExec() local 2717 nKey = pNos->n; in sqliteVdbeExec() 2718 assert( nKey >= 4 ); in sqliteVdbeExec() 2724 rc = sqliteBtreeMoveto(pCrsr, zKey, nKey-4, &res); in sqliteVdbeExec() 2733 rc = sqliteBtreeKeyCompare(pCrsr, zKey, nKey-4, 4, &res); in sqliteVdbeExec() [all …]
|
H A D | btree.c | 194 u16 nKey; /* Number of bytes in the key */ member 207 #define NKEY(b,h) (SWAB16(b,h.nKey) + h.nKeyHi*65536) 1335 int nKey, /* Number of bytes in pKey */ in fileBtreeKeyCompare() argument 1350 n = nKey<nLocal ? nKey : nLocal; in fileBtreeKeyCompare() 1360 nKey -= n; in fileBtreeKeyCompare() 1363 while( nKey>0 && nLocal>0 ){ in fileBtreeKeyCompare() 1373 n = nKey<nLocal ? nKey : nLocal; in fileBtreeKeyCompare() 1383 nKey -= n; in fileBtreeKeyCompare() 1388 c = nLocal - nKey; in fileBtreeKeyCompare() 1592 int fileBtreeMoveto(BtCursor *pCur, const void *pKey, int nKey, int *pRes){ in fileBtreeMoveto() argument [all …]
|
H A D | tclsqlite.c | 921 int nKey; in DbObjCmd() local 927 pKey = Tcl_GetByteArrayFromObj(objv[2], &nKey); in DbObjCmd() 929 rc = sqlite_rekey(pDb->db, pKey, nKey); in DbObjCmd() 1029 int nKey = 0; in DbMain() local 1064 pKey = Tcl_GetByteArrayFromObj(objv[objc-1], &nKey); in DbMain() 1092 p->db = sqlite_open_encrypted(zFile, pKey, nKey, 0, &zErrMsg); in DbMain()
|
H A D | sqlite.h.in | 806 ** Open an encrypted SQLite database. If pKey==0 or nKey==0, this routine 815 int nKey, /* Number of bytes in the key */ 830 const void *pKey, int nKey /* The new key */
|