Shaka Player Embedded
|
Classes | |
class | IDBCursor |
class | IDBCursorFactory |
class | IDBDatabase |
class | IDBDatabaseFactory |
class | IDBDeleteDBRequest |
class | IDBDeleteRequest |
class | IDBFactory |
class | IDBFactoryFactory |
class | IDBGetRequest |
class | IDBIterateCursorRequest |
class | IDBObjectStore |
class | IDBObjectStoreFactory |
struct | IDBObjectStoreParameters |
class | IDBOpenDBRequest |
class | IDBOpenDBRequestFactory |
class | IDBRequest |
class | IDBRequestFactory |
class | IDBStoreRequest |
class | IDBTransaction |
class | IDBTransactionFactory |
class | SqliteConnection |
class | SqliteTransaction |
Typedefs | |
using | IdbKeyType = int64_t |
Functions | |
DEFINE_STRUCT_SPECIAL_METHODS_COPYABLE (IDBObjectStoreParameters) | |
ExceptionOr< void > | StoreInProto (Any input, proto::Value *result) |
Any | LoadFromProto (const proto::Value &value) |
using shaka::js::idb::IdbKeyType = typedef int64_t |
Definition at line 29 of file idb_utils.h.
|
strong |
|
strong |
|
strong |
|
strong |
Enumerator | |
---|---|
READ_ONLY | |
READ_WRITE | |
VERSION_CHANGE |
Definition at line 44 of file transaction.h.
shaka::js::idb::DEFINE_STRUCT_SPECIAL_METHODS_COPYABLE | ( | IDBObjectStoreParameters | ) |
Any shaka::js::idb::LoadFromProto | ( | const proto::Value & | value | ) |
Converts the given stored Item and converts it into a new JavaScript object.
value | The stored object to convert. |
Definition at line 238 of file idb_utils.cc.
ExceptionOr< void > shaka::js::idb::StoreInProto | ( | Any | input, |
proto::Value * | result | ||
) |
Converts the given JavaScript object into a stored item. This is an expensive operation that makes copies of the data. Therefore, this should only be done right before being stored.
This implements part of the structured clone algorithm to copy the data. This does not support Blob, FileList, ImageData, Map, or Set since we don't define any of those types, and neither the RegExp or Date types. This also does not support retaining object references or cycles.
This will throw a JsError on error.
input | The value to convert. |
result | [OUT] If this returns true, will contain the new converted item |
Definition at line 233 of file idb_utils.cc.