[Pas2js] TStream implementation committed

silvioprog silvioprog at gmail.com
Thu Jul 4 04:11:13 CEST 2019


On Wed, Jun 19, 2019 at 5:00 AM Michael Van Canneyt <michael at freepascal.org>
wrote:

> Hello,
>
> I have implemented TStream.
>

You have done a great job!

The best thing about open source is that when we least expect, it surprised
us by incredible works. :-)

The latest delphis (and FPC) have added methods to TStream which read/write
> TBytes instead of a memory buffer. It is possible to implement such a call
> in pas2js (which has no arbitrary memory buffer). They also added some
> basic
> ReadData(Buffer)/WriteData(Buffer) calls which read/write some basic types
> (integers and a float). These can be ported as well.
>
> This means that if you write your stream handling using these new methods,
> you can
> use TStream both natively and in pas2js.
>
> Currently the only available stream is TBytesStream, but I expect to have
> streams based on the various lower-level javascript TTypedArray classes
> available soon.
>
> The next steps include also implementing the component streaming classes,
> and 'resource' support for pas2js.
>
> Michael.


-- 
Silvio Clécio
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/pas2js/attachments/20190703/f9f8d55c/attachment.html>


More information about the Pas2js mailing list