Flash Exporter: Best way of getting an AS3 Vector.uint back into C#?

I’m extending the flash exporter’s functionality with some ActionScript classes, with identical C# classes mirroring them (with [NotRenamed] and [NotConverted] tags).

One of the methods I have needs to pass pixel data from a BitmapData object back into Unity. The pixel data is in a Vector.uint

I haven’t been able to figure out if there’s a way to cast this Vector into something that Unity understands. I’ve written a wrapper class for Arrays instead, into which I can copy the Vector’s values entry by entry. This seems pretty wasteful, though, and there’s got to be a better way of doing it.

Any pointers?

To answer my own question, I’m now creating a CLIObjectArray of type Color32 within my ActionScript method and returning that (converting from uint to Color32 inside my method). This makes everything a lot more efficient and removes the need for my own Array wrapper.