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

#include <Utils.h>

Public Member Functions

 CString (JNIEnv *env, const jstring &jstr)
 
 ~CString ()
 
const char * str () const
 
 operator const char * () const
 

Detailed Description

Definition at line 19 of file Utils.h.

Constructor & Destructor Documentation

◆ CString()

jetski::utils::CString::CString ( JNIEnv *  env,
const jstring &  jstr 
)
inline

Definition at line 21 of file Utils.h.

22 : fEnv(env)
23 , fJString(jstr)
24 , fCString(env->GetStringUTFChars(jstr, nullptr))
25 {}
Definition: __init__.py:1

◆ ~CString()

jetski::utils::CString::~CString ( )
inline

Definition at line 27 of file Utils.h.

27 {
28 fEnv->ReleaseStringUTFChars(fJString, fCString);
29 }

Member Function Documentation

◆ operator const char *()

jetski::utils::CString::operator const char * ( ) const
inline

Definition at line 32 of file Utils.h.

32{ return fCString; }

◆ str()

const char * jetski::utils::CString::str ( ) const
inline

Definition at line 31 of file Utils.h.

31{ return fCString; }

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