pub struct AutoPrimitiveArray<'a: 'b, 'b> { /* private fields */ }
Expand description

Auto-release wrapper for pointer-based primitive arrays.

This wrapper is used to wrap pointers returned by GetPrimitiveArrayCritical. While wrapped, the object can be accessed via the From impl.

AutoPrimitiveArray provides automatic array release through a call to ReleasePrimitiveArrayCritical when it goes out of scope.

Implementations

Get a reference to the wrapped pointer

Don’t copy the changes to the array on release (if it is a copy). This has no effect if the array is not a copy. This method is useful to change the release mode of an array originally created with ReleaseMode::CopyBack.

Indicates if the array is a copy or not

Returns the array size

Trait Implementations

Executes the destructor for this type. Read more

Converts to this type from the input type.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.