Subclasses

Parameters

From nsIPipe

 initialize this pipe

 @param nonBlockingInput
        true specifies non-blocking input stream behavior
 @param nonBlockingOutput
        true specifies non-blocking output stream behavior
 @param segmentSize
        specifies the segment size in bytes (pass 0 to use default value)
 @param segmentCount
        specifies the max number of segments (pass 0 to use default
        value).   Passing PR_UINT32_MAX here causes the pipe to have
        "infinite" space.  This mode can be useful in some cases, but
        should always be used with caution.  The default value for this
        parameter is a finite value.
 @param segmentAllocator
        pass reference to nsIMemory to have all pipe allocations use this
        allocator (pass null to use the default allocator)
void init(in boolean nonBlockingInput, in boolean nonBlockingOutput, in unsigned long segmentSize, in unsigned long segmentCount, in nsIMemory segmentAllocator)

From nsIStorageStream


 Initialize the stream, setting up the amount of space that will be
 allocated for the stream's backing-store.

 @param segmentSize
        Size of each segment. Must be a power of two.
 @param maxSize
        Maximum total size of this stream. length will always be less
        than or equal to this value. Passing PR_UINT32_MAX is safe.
 @param segmentAllocator
        Which allocator to use for the segments. May be null, in which
        case a default allocator will be used.
void init(in PRUint32 segmentSize, in PRUint32 maxSize, in nsIMemory segmentAllocator)