Back to index

lightning-sunbird  0.9+nobinonly
Classes | Functions
nsIObjectOutputStream.idl File Reference
import "nsIBinaryOutputStream.idl";
import "nsrootidl.idl";

Go to the source code of this file.

Classes

interface  nsIObjectOutputStream
 nsIObjectInputStream nsIBinaryOutputStream More...

Functions

nsresult NS_WriteOptionalObject (nsIObjectOutputStream *aStream, nsISupports *aObject, PRBool aIsStrongRef)
nsresult NS_WriteOptionalSingleRefObject (nsIObjectOutputStream *aStream, nsISupports *aObject)
nsresult NS_WriteOptionalCompoundObject (nsIObjectOutputStream *aStream, nsISupports *aObject, const nsIID &aIID, PRBool aIsStrongRef)

Function Documentation

nsresult NS_WriteOptionalCompoundObject ( nsIObjectOutputStream aStream,
nsISupports *  aObject,
const nsIID aIID,
PRBool  aIsStrongRef 
) [inline]

Definition at line 119 of file nsIObjectOutputStream.idl.

{
    PRBool nonnull = (aObject != nsnull);
    nsresult rv = aStream->WriteBoolean(nonnull);
    if (NS_SUCCEEDED(rv) && nonnull)
        rv = aStream->WriteCompoundObject(aObject, aIID, aIsStrongRef);
    return rv;
}
nsresult NS_WriteOptionalObject ( nsIObjectOutputStream aStream,
nsISupports *  aObject,
PRBool  aIsStrongRef 
) [inline]

Definition at line 97 of file nsIObjectOutputStream.idl.

{
    PRBool nonnull = (aObject != nsnull);
    nsresult rv = aStream->WriteBoolean(nonnull);
    if (NS_SUCCEEDED(rv) && nonnull)
        rv = aStream->WriteObject(aObject, aIsStrongRef);
    return rv;
}
nsresult NS_WriteOptionalSingleRefObject ( nsIObjectOutputStream aStream,
nsISupports *  aObject 
) [inline]

Definition at line 108 of file nsIObjectOutputStream.idl.

{
    PRBool nonnull = (aObject != nsnull);
    nsresult rv = aStream->WriteBoolean(nonnull);
    if (NS_SUCCEEDED(rv) && nonnull)
        rv = aStream->WriteSingleRefObject(aObject);
    return rv;
}