Pointer<Uint8> toNative(Allocator alloc) { final writer = RecordWriter(); writeFields(writer); return writer.toNative(alloc); }