MCPcopy Create free account
hub / github.com/buggins/coolreader / enumByNativeId

Method enumByNativeId

android/jni/cr3java.cpp:138–148  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

136}
137
138jobject CRJNIEnv::enumByNativeId( const char * classname, int id )
139{
140 jclass cl = env->FindClass(classname);
141 if ( cl ) {
142 jmethodID method = env->GetStaticMethodID(cl, "byId", "(I)Lorg/coolreader/crengine/DocumentFormat;");
143 if ( method ) {
144 return env->CallStaticObjectMethod(cl, method, (jint)id);
145 }
146 }
147 return NULL;
148}
149
150LVStreamRef CRJNIEnv::jbyteArrayToStream( jbyteArray array )
151{

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected