Readonly
formatGet the version of the structured clone algorithm which was used to generate this container's serialized buffer.
Readonly
serializedNBytesGet the size in bytes of this container's serialized data.
Optional
aInstancePtr: objectA run time mechanism for interface discovery.
NS_OK if the interface is supported by the associated instance, NS_NOINTERFACE if it is not.
aInstancePtr must not be null.
[in] A requested interface IID
[out] A pointer to an interface pointer to receive the result.
Initialize this structured clone container from a base-64-encoded byte stream, stored in aData. aFormatVersion should be the version of the structured clone algorithm which was used to generate aData.
Generated using TypeDoc
This interface acts as a container for an object serialized using the structured clone algorithm.
You can copy an object into an nsIStructuredCloneContainer using initFromJSVal or initFromBase64. It's an error to initialize an nsIStructuredCloneContainer more than once.
Once you've initialized the container, you can get a copy of the object it stores by calling deserializeToVariant. You can also get a base-64-encoded string containing a copy of the container's serialized data, using getDataAsBase64.