astffi.llvm.0.1.2.source-code.jni_com_alibaba_fastffi_llvm_StructLayout_cxx_0x94a88ab6.cc Maven / Gradle / Ivy
The newest version!
#include
#include
#include "llvm/IR/DataLayout.h"
#ifdef __cplusplus
extern "C" {
#endif
// Common Stubs
JNIEXPORT
jint JNICALL Java_com_alibaba_fastffi_llvm_StructLayout_1cxx_10x94a88ab6__1elementSize_00024_00024_00024(JNIEnv*, jclass) {
return (jint)sizeof(llvm::StructLayout);
}
JNIEXPORT
jlong JNICALL Java_com_alibaba_fastffi_llvm_StructLayout_1cxx_10x94a88ab6_nativeGetElementOffset(JNIEnv*, jclass, jlong ptr, jint arg0 /* index0 */) {
return (jlong)(reinterpret_cast(ptr)->getElementOffset(arg0));
}
#ifdef __cplusplus
}
#endif