All Downloads are FREE. Search and download functionalities are using the official Maven repository.

astffi.llvm.0.1.2.source-code.jni_com_alibaba_fastffi_llvm_ObjectFile_cxx_0xa2731771.cc Maven / Gradle / Ivy

The newest version!
#include 
#include 
#include "llvm/Object/ObjectFile.h"
#include "llvm/Object/Binary.h"

#ifdef __cplusplus
extern "C" {
#endif

// Common Stubs

JNIEXPORT
jint JNICALL Java_com_alibaba_fastffi_llvm_ObjectFile_1cxx_10xa2731771__1elementSize_00024_00024_00024(JNIEnv*, jclass) {
    return (jint)sizeof(llvm::object::ObjectFile);
}

JNIEXPORT
jboolean JNICALL Java_com_alibaba_fastffi_llvm_ObjectFile_1cxx_10xa2731771_nativeIsMachO(JNIEnv*, jclass, jlong ptr) {
	return (reinterpret_cast(ptr)->isMachO()) ? JNI_TRUE : JNI_FALSE;
}

JNIEXPORT
jlong JNICALL Java_com_alibaba_fastffi_llvm_ObjectFile_1cxx_10xa2731771_nativeSection_1begin(JNIEnv*, jclass, jlong ptr, jlong rv_base) {
	return reinterpret_cast(new((void*)rv_base) llvm::object::section_iterator(reinterpret_cast(ptr)->section_begin()));
}

JNIEXPORT
jlong JNICALL Java_com_alibaba_fastffi_llvm_ObjectFile_1cxx_10xa2731771_nativeSection_1end(JNIEnv*, jclass, jlong ptr, jlong rv_base) {
	return reinterpret_cast(new((void*)rv_base) llvm::object::section_iterator(reinterpret_cast(ptr)->section_end()));
}

#ifdef __cplusplus
}
#endif




© 2015 - 2024 Weber Informatics LLC | Privacy Policy