[Pas2js] Records as pure data?

Mattias Gaertner nc-gaertnma at netcologne.de
Wed May 9 14:38:04 CEST 2018


On Wed, 9 May 2018 19:26:32 +0700
Ryan Joseph <ryan at thealchemistguild.com> wrote:

>[...]
> To be clear does JS have any notion of structs or a way to pack bytes together?

AFAIK JS had no way, which is why TypedArrays were added.

> Float32Array seems to do this but it only works for a single type. I wonder if you could use Float32Array and Int8Array for example and concatenate them.

AFAIK no.

Mattias


More information about the Pas2js mailing list