D WebAssembly working differently than C++, Zig

Siarhei Siamashka siarhei.siamashka at gmail.com
Tue May 17 11:43:45 UTC 2022


On Tuesday, 17 May 2022 at 11:36:21 UTC, Adam D Ruppe wrote:
> Oh I should have checked my impl, where I did all this already!
>
> https://github.com/adamdruppe/webassembly/blob/master/arsd-webassembly/object.d#L263

Looks like you forgot to increment the pointer and need "*d++ = 
cast(ubyte) c;" there. And filling the buffer one byte at a time 
is likely slow.


More information about the Digitalmars-d-learn mailing list