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

#include <Utils.h>

Public Member Functions

 U16String (JNIEnv *env, const jstring &jstr)
 
 ~U16String ()
 
 operator const char16_t * () const
 

Detailed Description

Definition at line 46 of file Utils.h.

Constructor & Destructor Documentation

◆ U16String()

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

Definition at line 48 of file Utils.h.

49 : fEnv(env)
50 , fJString(jstr)
51 , fU16String(env->GetStringChars(jstr, nullptr))
52 {}
Definition: __init__.py:1

◆ ~U16String()

jetski::utils::U16String::~U16String ( )
inline

Definition at line 54 of file Utils.h.

54 {
55 fEnv->ReleaseStringChars(fJString, fU16String);
56 }

Member Function Documentation

◆ operator const char16_t *()

jetski::utils::U16String::operator const char16_t * ( ) const
inline

Definition at line 58 of file Utils.h.

58{ return reinterpret_cast<const char16_t*>(fU16String); }

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