nativeWriteInto method
Writes all fields directly into the native struct reference p.
For nested structs, use writeInto as well.
Implementation
@override
void nativeWriteInto(ImageC p) {
p.width = width;
p.height = height;
p.mipmaps = mipmaps;
p.format = format.value;
if (p.data.address != 0) {
assert(p.dataLength <= data.length);
p.data.cast<Uint8>().asTypedList(dataLength).setAll(0, data);
}
}