Closed
Bug 288874
Opened 19 years ago
Closed 11 years ago
nsIByteArrayInputStream not scriptable
Categories
(Core :: XPCOM, defect)
Tracking
()
RESOLVED
INCOMPLETE
People
(Reporter: Biesinger, Unassigned)
References
()
Details
It would be nice to be able to create an input stream from a byte array in JS; but http://lxr.mozilla.org/seamonkey/source/xpcom/io/nsIByteArrayInputStream.idl#41 is only useful from C++.
Comment 1•19 years ago
|
||
nsIByteArrayInputStream is redundant. I have wanted to remove it for some time. nsIStringInputStream is a fine replacement for C++ consumers, but it also has problems for JS consumers. It might make sense to use nsIStorageStream in conjunction with nsIBinaryOutputStream or something like that.
Reporter | ||
Comment 2•19 years ago
|
||
could nsIStringInputStream get methods like: void setData([const,array,size_is(length)]in octet data, in unsigned long length); void setStringAsUTF8(in AString string); which would make it a lot more useful from js? storage stream is a bit more complex, since you need to write your data to an outputstream first, and writing binary data to output streams requires wrapping an nsIBinaryOutputStream around it too.
Updated•18 years ago
|
QA Contact: xpcom
Comment 4•11 years ago
|
||
This file and interface doesn't appear to exist any more.
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → INCOMPLETE
You need to log in
before you can comment on or make changes to this bug.
Description
•