• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.9.5/WebCore-7537.78.1/Modules/indexeddb/

Lines Matching refs:limit

182 const char* decodeByte(const char* p, const char* limit, unsigned char& foundChar)
184 if (p >= limit)
278 const char* decodeVarInt(const char* p, const char* limit, int64_t& foundInt)
280 ASSERT(limit >= p);
285 if (p >= limit)
333 const char* decodeStringWithLength(const char* p, const char* limit, String& foundString)
335 ASSERT(limit >= p);
337 p = decodeVarInt(p, limit, len);
338 if (!p || len < 0 || p + len * 2 > limit)
396 const char* decodeDouble(const char* p, const char* limit, double* d)
398 if (p + sizeof(*d) > limit)
454 const char* decodeIDBKey(const char* p, const char* limit, RefPtr<IDBKey>& foundKey)
456 ASSERT(limit >= p);
457 if (p >= limit)
469 p = decodeVarInt(p, limit, length);
475 p = decodeIDBKey(p, limit, key);
485 p = decodeStringWithLength(p, limit, s);
493 p = decodeDouble(p, limit, &d);
501 p = decodeDouble(p, limit, &d);
513 const char* extractEncodedIDBKey(const char* start, const char* limit, Vector<char>* result = 0)
516 if (p >= limit)
527 p = decodeVarInt(p, limit, length);
531 p = extractEncodedIDBKey(p, limit);
539 p = decodeVarInt(p, limit, length);
540 if (!p || length < 0 || p + length * 2 > limit)
547 if (p + sizeof(double) > limit)
555 ASSERT(p <= limit);
685 IDBKeyPath decodeIDBKeyPath(const char* p, const char* limit)
690 if (p == limit || (limit - p >= 2 && (*p != IDBKeyPathTypeCodedByte1 || *(p + 1) != IDBKeyPathTypeCodedByte2)))
691 return IDBKeyPath(decodeString(p, limit));
694 ASSERT(p != limit);
698 ASSERT(p == limit);
702 p = decodeStringWithLength(p, limit, string);
703 ASSERT(p == limit);
709 p = decodeVarInt(p, limit, count);
714 p = decodeStringWithLength(p, limit, string);
718 ASSERT(p == limit);
1038 const char* KeyPrefix::decode(const char* start, const char* limit, KeyPrefix* result)
1040 if (start == limit)
1049 if (start + databaseIdBytes + objectStoreIdBytes + indexIdBytes > limit)
1161 const char* DatabaseFreeListKey::decode(const char* start, const char* limit, DatabaseFreeListKey* result)
1164 const char* p = KeyPrefix::decode(start, limit, &prefix);
1170 if (p == limit)
1173 p = decodeByte(p, limit, typeByte);
1175 if (p == limit)
1177 return decodeVarInt(p, limit, result->m_databaseId);
1205 const char* DatabaseNameKey::decode(const char* start, const char* limit, DatabaseNameKey* result)
1208 const char* p = KeyPrefix::decode(start, limit, &prefix);
1214 if (p == limit)
1217 p = decodeByte(p, limit, typeByte);
1219 if (p == limit)
1221 p = decodeStringWithLength(p, limit, result->m_origin);
1224 return decodeStringWithLength(p, limit, result->m_databaseName);
1268 const char* ObjectStoreMetaDataKey::decode(const char* start, const char* limit, ObjectStoreMetaDataKey* result)
1271 const char* p = KeyPrefix::decode(start, limit, &prefix);
1277 if (p == limit)
1280 p = decodeByte(p, limit, typeByte);
1282 if (p == limit)
1284 p = decodeVarInt(p, limit, result->m_objectStoreId);
1288 if (p == limit)
1290 return decodeByte(p, limit, result->m_metaDataType);
1341 const char* IndexMetaDataKey::decode(const char* start, const char* limit, IndexMetaDataKey* result)
1344 const char* p = KeyPrefix::decode(start, limit, &prefix);
1350 if (p == limit)
1353 p = decodeByte(p, limit, typeByte);
1355 if (p == limit)
1357 p = decodeVarInt(p, limit, result->m_objectStoreId);
1360 p = decodeVarInt(p, limit, result->m_indexId);
1363 if (p == limit)
1365 return decodeByte(p, limit, result->m_metaDataType);
1412 const char* ObjectStoreFreeListKey::decode(const char* start, const char* limit, ObjectStoreFreeListKey* result)
1415 const char* p = KeyPrefix::decode(start, limit, &prefix);
1421 if (p == limit)
1424 p = decodeByte(p, limit, typeByte);
1426 if (p == limit)
1428 return decodeVarInt(p, limit, result->m_objectStoreId);
1466 const char* IndexFreeListKey::decode(const char* start, const char* limit, IndexFreeListKey* result)
1469 const char* p = KeyPrefix::decode(start, limit, &prefix);
1475 if (p == limit)
1478 p = decodeByte(p, limit, typeByte);
1480 if (p == limit)
1482 p = decodeVarInt(p, limit, result->m_objectStoreId);
1485 return decodeVarInt(p, limit, result->m_indexId);
1527 const char* ObjectStoreNamesKey::decode(const char* start, const char* limit, ObjectStoreNamesKey* result)
1530 const char* p = KeyPrefix::decode(start, limit, &prefix);
1536 if (p == limit)
1539 p = decodeByte(p, limit, typeByte);
1541 return decodeStringWithLength(p, limit, result->m_objectStoreName);
1565 const char* IndexNamesKey::decode(const char* start, const char* limit, IndexNamesKey* result)
1568 const char* p = KeyPrefix::decode(start, limit, &prefix);
1574 if (p == limit)
1577 p = decodeByte(p, limit, typeByte);
1579 if (p == limit)
1581 p = decodeVarInt(p, limit, result->m_objectStoreId);
1584 return decodeStringWithLength(p, limit, result->m_indexName);
1696 const char* IndexDataKey::decode(const char* start, const char* limit, IndexDataKey* result)
1699 const char* p = KeyPrefix::decode(start, limit, &prefix);
1711 p = extractEncodedIDBKey(p, limit, &result->m_encodedUserKey);
1716 if (p == limit)
1718 p = decodeVarInt(p, limit, result->m_sequenceNumber);
1723 if (p == limit)
1725 p = extractEncodedIDBKey(p, limit, &result->m_encodedPrimaryKey);