toNative method
Implementation
Pointer<SyncedFrameFfi> toNative(Arena arena) {
final ptr = arena<SyncedFrameFfi>();
ptr.ref.pixels = pixels.toPointer(arena);
ptr.ref.size = size;
ptr.ref.width = width;
ptr.ref.height = height;
ptr.ref.bytesPerRow = bytesPerRow;
ptr.ref.pixelFormat = pixelFormat;
ptr.ref.isMirrored = isMirrored;
ptr.ref.depth = depth.toPointer(arena);
ptr.ref.depthSize = depthSize;
ptr.ref.depthWidth = depthWidth;
ptr.ref.depthHeight = depthHeight;
ptr.ref.depthBytesPerRow = depthBytesPerRow;
ptr.ref.timestamp = timestamp;
ptr.ref.textureId = textureId;
return ptr;
}