Flutter Engine
The Flutter Engine
Public Member Functions | List of all members
jetski::utils::CFloats Class Reference

#include <Utils.h>

Public Member Functions

 CFloats (JNIEnv *env, const jfloatArray &jfloats)
 
 ~CFloats ()
 
 operator const float * () const
 

Detailed Description

Definition at line 73 of file Utils.h.

Constructor & Destructor Documentation

◆ CFloats()

jetski::utils::CFloats::CFloats ( JNIEnv *  env,
const jfloatArray &  jfloats 
)
inline

Definition at line 75 of file Utils.h.

76 : fEnv(env)
77 , fJFloats(jfloats)
78 , fCFloats(env->GetFloatArrayElements(jfloats, nullptr))
79 {}
Definition: __init__.py:1

◆ ~CFloats()

jetski::utils::CFloats::~CFloats ( )
inline

Definition at line 81 of file Utils.h.

81 {
82 fEnv->ReleaseFloatArrayElements(fJFloats, fCFloats, 0);
83 }

Member Function Documentation

◆ operator const float *()

jetski::utils::CFloats::operator const float * ( ) const
inline

Definition at line 85 of file Utils.h.

85{ return fCFloats; }

The documentation for this class was generated from the following file: