copy

expect fun copy(): Frame

An owned snapshot of this frame. Use it to keep a callback-scoped frame past that call. O(1): it takes new references to the same refcounted buffers, with no pixel copy. The returned frame survives the source being recycled. Close it yourself.

Return

a new owned frame sharing this one's buffers

Throws

if the frame cannot be referenced

actual fun copy(): Frame

An owned snapshot of this frame. Use it to keep a callback-scoped frame past that call. O(1): it takes new references to the same refcounted buffers, with no pixel copy. The returned frame survives the source being recycled. Close it yourself.

Return

a new owned frame sharing this one's buffers

Throws

if the frame cannot be referenced

actual fun copy(): Frame

An owned snapshot of this frame. Use it to keep a callback-scoped frame past that call. O(1): it takes new references to the same refcounted buffers, with no pixel copy. The returned frame survives the source being recycled. Close it yourself.

Return

a new owned frame sharing this one's buffers

Throws

if the frame cannot be referenced

actual fun copy(): Frame

An owned snapshot of this frame. Use it to keep a callback-scoped frame past that call. O(1): it takes new references to the same refcounted buffers, with no pixel copy. The returned frame survives the source being recycled. Close it yourself.

Return

a new owned frame sharing this one's buffers

Throws

if the frame cannot be referenced

actual fun copy(): Frame

An owned snapshot of this frame. Use it to keep a callback-scoped frame past that call. O(1): it takes new references to the same refcounted buffers, with no pixel copy. The returned frame survives the source being recycled. Close it yourself.

Return

a new owned frame sharing this one's buffers

Throws

if the frame cannot be referenced