Back to index

lightning-sunbird  0.9+nobinonly
Classes | Functions
nsIByteArrayInputStream.idl File Reference
import "nsIInputStream.idl";

Go to the source code of this file.


interface  nsIByteArrayInputStream


NS_COM nsresult NS_NewByteArrayInputStream (nsIByteArrayInputStream **aResult, char *buffer, unsigned long size)

Function Documentation

NS_COM nsresult NS_NewByteArrayInputStream ( nsIByteArrayInputStream **  aResult,
char *  buffer,
unsigned long  size 

Definition at line 151 of file nsByteArrayInputStream.cpp.

    if (aResult == NULL)
        return NS_ERROR_NULL_POINTER;

    nsIByteArrayInputStream * stream = new nsByteArrayInputStream (buffer, bytes);

    if (!stream)
        return NS_ERROR_OUT_OF_MEMORY;

    NS_ADDREF (stream);
    *aResult = stream;
    return NS_OK;

Here is the call graph for this function:

Here is the caller graph for this function: