Re: [streams] How will ReadableByteStream work with seekable resources? (#253)

It would be nice if this didn't require a new type.

I think `setAllocator` + `readInto` would be ok.  It would just copy the data an extra time.  The fread into the allocator returned buffer and then again into the readInto buffer.  Not recommended, but not breaking.

Any readInto call would be limited to the size of the allocator returned buffer.  If readInto completely drains the buffer, then the allocate() function is called again.

---
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/streams/issues/253#issuecomment-73938444

Received on Wednesday, 11 February 2015 18:45:23 UTC