From f8e454261b5db6f31395aa07489fc0a24252511b Mon Sep 17 00:00:00 2001 From: "timeless%mozdev.org" Date: Fri, 18 Jun 2004 08:17:58 +0000 Subject: [PATCH] Bug 235744 Expose StorageStream class to Javascript patch by nsayer@kfu.com r=darin sr=darin git-svn-id: svn://10.0.0.236/trunk@158106 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/xpcom/io/nsIStorageStream.idl | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/mozilla/xpcom/io/nsIStorageStream.idl b/mozilla/xpcom/io/nsIStorageStream.idl index be73c782eb9..924a1a9445f 100644 --- a/mozilla/xpcom/io/nsIStorageStream.idl +++ b/mozilla/xpcom/io/nsIStorageStream.idl @@ -39,6 +39,7 @@ #include "nsISupports.idl" #include "nsrootidl.idl" +interface nsIMemory; interface nsIInputStream; interface nsIOutputStream; @@ -48,9 +49,16 @@ interface nsIOutputStream; * can be created to read the data from the buffer non-destructively. */ -[scriptable, uuid(604ad9d0-753e-11d3-90ca-0040056a906e)] +[scriptable, uuid(604ad9d0-753e-11d3-90ca-34278643278f)] interface nsIStorageStream : nsISupports { + /** + * + * Initialize the stream, setting up the amount of space that will be + * allocated for the stream's backing-store. + */ + void init(in PRUint32 segmentSize, in PRUint32 maxSize, in nsIMemory segmentAllocator); + /** * Get a reference to the one and only output stream for this instance. * The zero-based startPosition argument is used is used to set the initial