2021年3月26日星期五

convert SharedArrayBuffer to normal ArrayBuffer

I am trying to create a new ImageData from a Uint8ClampedArray based on a SharedArrayBuffer, since the ImageData constructor doesnt accept a Uint8ClampedArray based on a SharedArrayBuffer I have to convert it to a normal ArrayBuffer somehow.

Any Ideas how I can convert the SharedArrayBuffer to a normal ArrayBuffer or how I could create ImageData with a SharedArrayBuffer?

https://stackoverflow.com/questions/66827434/convert-sharedarraybuffer-to-normal-arraybuffer March 27, 2021 at 10:15AM

没有评论:

发表评论