Enabling ByteArrayInputStream. Needed to fix 32600, r=warren

git-svn-id: svn://10.0.0.236/trunk@63692 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
ruslan%netscape.com
2000-03-22 02:50:56 +00:00
parent be66fa8586
commit 84da80ad5b
6 changed files with 16 additions and 9 deletions

View File

@@ -22,9 +22,12 @@
#include "nsByteArrayInputStream.h"
#include "nsIAllocator.h"
NS_IMPL_THREADSAFE_ISUPPORTS2(nsByteArrayInputStream, nsIInputStream, nsIBaseStream)
nsByteArrayInputStream::nsByteArrayInputStream (char *buffer, PRUint32 bytes)
: _buffer (buffer), _nbytes (bytes), _pos (0)
{
NS_INIT_REFCNT ();
}
nsByteArrayInputStream::~nsByteArrayInputStream ()
@@ -33,8 +36,6 @@ nsByteArrayInputStream::~nsByteArrayInputStream ()
nsAllocator::Free (_buffer);
}
NS_IMPL_THREADSAFE_ISUPPORTS (nsByteArrayInputStream, NS_GET_IID (nsIByteArrayInputStream))
NS_IMETHODIMP
nsByteArrayInputStream::Available (PRUint32* aResult)
{