[Pas2js] [feature request + ideas] Implementing TStream based classes (TBytesStream, TFileStream, TStringStream and so on)

Mattias Gaertner nc-gaertnma at netcologne.de
Tue Nov 13 18:04:57 CET 2018


On Tue, 13 Nov 2018 12:32:22 -0300
silvioprog <silvioprog at gmail.com> wrote:

> On Sat, Nov 10, 2018 at 4:39 AM Mattias Gaertner via Pas2js <
> pas2js at lists.freepascal.org> wrote:  
> [...]
> 
> > You didn't answer my question. How to access the data in the stream?
> > The big advantage of Pascal streams is the ability to easily
> > read/write any datatype. This is not possible in JS.
> > What kind of alternative overloads do you plan?
> >  
> 
> Please read the part "Indeed. But I have an idea which I would like to
> check if you agree" in my second message. That was the only way I
> found to make it to work for any data type.

Do you mean the notes about Chrome FileAPI?
How does that help to translate code like this:

var i: longint;

 aStream.Write(i,4);

 
>[...]

Mattias


More information about the Pas2js mailing list