Back to index

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

Go to the source code of this file.

Classes

interface  nsIObjectInputStream

Functions

nsresult NS_ReadOptionalObject (nsIObjectInputStream *aStream, PRBool aIsStrongRef, nsISupports **aResult)

Function Documentation

nsresult NS_ReadOptionalObject ( nsIObjectInputStream aStream,
PRBool  aIsStrongRef,
nsISupports **  aResult 
) [inline]

Definition at line 73 of file nsIObjectInputStream.idl.

{
    PRBool nonnull;
    nsresult rv = aStream->ReadBoolean(&nonnull);
    if (NS_SUCCEEDED(rv)) {
        if (nonnull)
            rv = aStream->ReadObject(aIsStrongRef, aResult);
        else
            *aResult = nsnull;
    }
    return rv;
}