Re: Overlap between StreamReader and FileReader

I forgot to add an attribute to specify the max size of backing store.
Maybe it should be added to the constructor.

On Wed, Sep 11, 2013 at 11:24 PM, Takeshi Yoshino <tyoshino@google.com>wrote:

>   any peek(optional [Clamp] long long size, optional [Clamp] long long
> offset);
>

peek with offset doesn't make sense for text mode reading. Some exception
should be throw for that case.


> - readableSize attribute returns (number of readable bytes as of the last
> time the event loop started executing a task) - (bytes consumed by read()
> method).
>

+ (bytes added by write() and transferred to read buffer synchronously)

----

The concept of this interface is
- to allow bulk transfer from internal asynchronous storage (e.g. network,
disk based backing store) to JS world but delay conversion (e.g. into
DOMString, ArrayBuffer).
- not to ask an app to do such transfer explicitly

Received on Wednesday, 11 September 2013 16:15:33 UTC