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:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user