MCPcopy Create free account
hub / github.com/AcademySoftwareFoundation/OpenColorIO / BuildJEnum

Function BuildJEnum

src/bindings/java/JNIUtil.h:136–141  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

134
135template<typename T>
136inline jobject BuildJEnum(JNIEnv * env, const char* ociotype, T val)
137{
138 jclass cls = env->FindClass(ociotype);
139 jmethodID mid = env->GetMethodID(cls, "<init>", "(I)V");
140 return env->NewObject(cls, mid, (int)val);
141}
142
143template<typename T>
144inline void CheckArrayLength(JNIEnv * env, const char* name, T ptr, int32_t length) {

Calls

no outgoing calls

Tested by

no test coverage detected