MCPcopy Create free account
hub / github.com/cinder/Cinder / SetStaticStringField

Method SetStaticStringField

src/cinder/android/JniHelper.cpp:640–648  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

638#undef CI_SET_STATIC_TYPE_FIELD_IMPL
639
640void JniHelper::SetStaticStringField( jclass clazz, jfieldID fieldId, const std::string& value )
641{
642 auto jniEnv = JvmHelper_CurrentJniEnv();
643 if( jniEnv && ( nullptr != fieldId ) ) {
644 jstring jstr = jniEnv->NewStringUTF( value.c_str() );
645 jniEnv->SetStaticObjectField( clazz, fieldId, (jobject)jstr );
646 jniEnv->DeleteLocalRef( (jobject)jstr );
647 }
648}
649
650// -------------------------------------------------------------------------------------------------
651// Java Fields

Callers

nothing calls this directly

Calls 4

JvmHelper_CurrentJniEnvFunction · 0.85
NewStringUTFMethod · 0.80
DeleteLocalRefMethod · 0.80
c_strMethod · 0.45

Tested by

no test coverage detected