nativeWriteInto method
Writes all fields directly into the native struct reference p.
For nested structs, use writeInto as well.
Implementation
@override
void nativeWriteInto(FontC p) {
p.baseSize = baseSize;
p.glyphCount = glyphCount;
p.glyphPadding = glyphPadding;
texture.nativeWriteInto(p.texture);
if (p.recs.address != 0) {
for (int i = 0; i < recs.length; i++) {
_recs.inner[i].nativeWriteInto((p.recs + i).ref);
}
}
if (p.glyphs.address != 0) {
for (int i = 0; i < glyphs.length; i++) {
_glyphs.inner[i].nativeWriteInto((p.glyphs + i).ref);
}
}
}