Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class JNIEnvCrystalix {
- public:
- auto FindClass( const std::string_view& class_name ) {
- return ( *( jclass ( __fastcall** )( JNIEnvCrystalix*, const char* ) )( *(uintptr_t*)this + 1864 ) )( this, class_name.data( ) ); //233 index
- }
- auto DeleteLocalRef( const jobject obj ) {
- return ( *( void ( __fastcall** )( JNIEnvCrystalix*, jobject ) )( *(uintptr_t*)this + 1472 ) )( this, obj ); //233 index
- }
- auto GetObjectClass( const jobject clazz_obj ) {
- return ( *( jclass( __fastcall** )( JNIEnvCrystalix*, jobject ) )( *(uintptr_t*)this + 1312 ) )( this, clazz_obj );
- }
- auto GetFieldID( const jclass clazz, const char* name, const char* sig ) {
- return ( *( jfieldID( __fastcall** )( JNIEnvCrystalix*, jclass, const char*, const char* ) )( *(uintptr_t*)this + 304 ) )( this, clazz,name,sig );
- }
- auto GetStaticFieldID( const jclass clazz, const char* name, const char* sig ) {
- return ( *( jfieldID( __fastcall** )( JNIEnvCrystalix*, jclass, const char*, const char* ) )( *(uintptr_t*)this + 1880 ) )( this, clazz,name,sig );
- }
- auto GetStaticIntField( const jclass clazz, const jfieldID fid ) {
- return ( *( jint( __fastcall** )( JNIEnvCrystalix*, jclass, jfieldID ) )( *(uintptr_t*)this + 744 ) )( this, clazz,fid );
- }
- auto SetDoubleField( const jobject clazz_obj, const jfieldID fldid, const jdouble val ) {
- return ( *( jobject( __fastcall** )( JNIEnvCrystalix*, jobject, jfieldID, jdouble ) )( *(uintptr_t*)this + 488 ) )( this, clazz_obj, fldid, val );
- }
- auto GetObjectField( const jobject clazz_obj, const jfieldID fldid ) {
- return ( *( jobject( __fastcall** )( JNIEnvCrystalix*, jobject, jfieldID ) )( *(uintptr_t*)this + 896 ) )( this, clazz_obj, fldid );
- }
- auto GetMethodID( const jclass clazz, const char* name, const char* sig ) {
- return ( *( jmethodID( __fastcall** )( JNIEnvCrystalix*, jclass, const char*, const char* ) )( *(uintptr_t*)this + 976 ) )( this, clazz, name, sig );
- }
- auto GetStaticMethodID( const jclass clazz, const char* name, const char* sig ) {
- return ( *( jmethodID( __fastcall** )( JNIEnvCrystalix*, jclass, const char*, const char* ) )( *(uintptr_t*)this + 1128 ) )( this, clazz, name, sig );
- }
- auto CallObjectMethod( const jobject clazz_obj, jmethodID methodID ) {
- return ( *( jobject( __fastcall** )( JNIEnvCrystalix*, jobject, jmethodID ) )( *(uintptr_t*)this + 872 ) )( this, clazz_obj, methodID );
- }
- auto CallStaticObjectMethod( const jclass clazz, jmethodID methodID ) {
- return ( *( jobject( __fastcall** )( JNIEnvCrystalix*, jclass, jmethodID ) )( *(uintptr_t*)this + 344 ) )( this, clazz, methodID );
- }
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement