Struct xpcom::interfaces::nsIObjectOutputStream [] [src]

#[repr(C)]
pub struct nsIObjectOutputStream { /* fields omitted */ }

interface nsIObjectOutputStream : nsIBinaryOutputStream

/**
 * @See nsIObjectInputStream
 * @See nsIBinaryOutputStream
 */

Methods

impl nsIObjectOutputStream
[src]

[src]

Cast this nsIObjectOutputStream to one of its base interfaces.

impl nsIObjectOutputStream
[src]

[src]

/**
     * Write the object whose "root" or XPCOM-identity nsISupports is aObject.
     * The cause for writing this object is a strong or weak reference, so the
     * aIsStrongRef argument must tell which kind of pointer is being followed
     * here during serialization.
     *
     * If the object has only one strong reference in the serialization and no
     * weak refs, use writeSingleRefObject.  This is a valuable optimization:
     * it saves space in the stream, and cycles on both ends of the process.
     *
     * If the reference being serialized is a pointer to an interface not on
     * the primary inheritance chain ending in the root nsISupports, you must
     * call writeCompoundObject instead of this method.
     */

void writeObject (in nsISupports aObject, in boolean aIsStrongRef);

[src]

/**
     * Write an object referenced singly and strongly via its root nsISupports
     * or a subclass of its root nsISupports.  There must not be other refs to
     * aObject in memory, or in the serialization.
     */

void writeSingleRefObject (in nsISupports aObject);

[src]

/**
     * Write the object referenced by an interface pointer at aObject that
     * inherits from a non-primary nsISupports, i.e., a reference to one of
     * the multiply inherited interfaces derived from an nsISupports other
     * than the root or XPCOM-identity nsISupports; or a reference to an
     * inner object in the case of true XPCOM aggregation.  aIID identifies
     * this interface.
     */

void writeCompoundObject (in nsISupports aObject, in nsIIDRef aIID, in boolean aIsStrongRef);

[src]

void writeID (in nsIDRef aID);

[src]

/**
     * Optimized serialization support -- see nsIStreamBufferAccess.idl.
     */

[notxpcom] charPtr getBuffer (in uint32_t aLength, in uint32_t aAlignMask);

[src]

[notxpcom] void putBuffer (in charPtr aBuffer, in uint32_t aLength);

Methods from Deref<Target = nsIBinaryOutputStream>

[src]

Cast this nsIBinaryOutputStream to one of its base interfaces.

[src]

void setOutputStream (in nsIOutputStream aOutputStream);

[src]

/**
     * Write a boolean as an 8-bit char to the stream.
     */

void writeBoolean (in boolean aBoolean);

[src]

void write8 (in uint8_t aByte);

[src]

void write16 (in uint16_t a16);

[src]

void write32 (in uint32_t a32);

[src]

void write64 (in uint64_t a64);

[src]

void writeFloat (in float aFloat);

[src]

void writeDouble (in double aDouble);

[src]

/**
     * Write an 8-bit pascal style string to the stream.
     * 32-bit length field, followed by length 8-bit chars.
     */

void writeStringZ (in string aString);

[src]

/**
     * Write a 16-bit pascal style string to the stream.
     * 32-bit length field, followed by length PRUnichars.
     */

void writeWStringZ (in wstring aString);

[src]

/**
     * Write an 8-bit pascal style string (UTF8-encoded) to the stream.
     * 32-bit length field, followed by length 8-bit chars.
     */

void writeUtf8Z (in wstring aString);

[src]

/**
     * Write an opaque byte array to the stream.
     */

void writeBytes ([size_is (aLength)] in string aString, in uint32_t aLength);

[src]

/**
     * Write an opaque byte array to the stream.
     */

void writeByteArray ([array, size_is (aLength)] in uint8_t aBytes, in uint32_t aLength);

Trait Implementations

impl XpCom for nsIObjectOutputStream
[src]

IID: nsIID = nsID(2462619820, 24542, 19353, [135, 179, 93, 72, 100, 34, 9, 75])

[src]

Perform a QueryInterface call on this object, attempting to dynamically cast it to the requested interface type. Returns Some(RefPtr) if the cast succeeded, and None otherwise. Read more

impl RefCounted for nsIObjectOutputStream
[src]

[src]

Increment the reference count.

[src]

Decrement the reference count, potentially freeing backing memory.

impl Deref for nsIObjectOutputStream
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.