Closed Bug 36748 Opened 25 years ago Closed 24 years ago

Eliminate nsByteArrayInputStream.cpp

Categories

(Core :: XPCOM, defect, P3)

All
Windows NT
defect

Tracking

()

VERIFIED WONTFIX

People

(Reporter: warrensomebody, Assigned: ruslan)

Details

NS_NewByteArrayInputStream is now redundant with NS_NewByteInputStream. Let's get rid of it to minimize code/maintenance.
The difference between the two is that ByteArrayInputStream owns the buffer, while ByteInputStream doesn't. That makes them different. For stream converter purposes - the stream converter can be long gone at the time the actual stream is accessed by the consumer
Target Milestone: --- → M17
Can we just add a flag to one of them that tells them whether they own the buffer or not? Or make the policy be that the thing always owns the buffer, so the caller has to call memcpy if necessary.
Status: NEW → ASSIGNED
The stream is good. I don't want to remove it.
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Resolution: --- → WONTFIX
okay, vrfy wontfix unless warren disagrees...
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.