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 it seems to return premultiplied RGB values. So is there a simple way to get ArrayBufferView in RGBA format?