BitmapData to RGBA pixels ArrayBufferView?

I need to get an ArrayBufferView of pixels RGBA values from a BitmapData object (to use it as a texture in BabylonHX).
What is the fastest way to do that?

when calling BitmapData.image.data it seems to return premultiplied RGB values. So is there a simple way to get Image.data ArrayBufferView in RGBA format?