astffi.llvm.0.1.2.source-code.jni_com_alibaba_fastffi_clang_TemplateArgumentArray_cxx_0x1a8a7901.cc Maven / Gradle / Ivy
The newest version!
#include
#include
#include "llvm/ADT/APInt.h"
#include "clang/Basic/LLVM.h"
#include "clang/AST/TemplateBase.h"
#ifdef __cplusplus
extern "C" {
#endif
// Common Stubs
JNIEXPORT
jint JNICALL Java_com_alibaba_fastffi_clang_TemplateArgumentArray_1cxx_10x1a8a7901__1elementSize_00024_00024_00024(JNIEnv*, jclass) {
return (jint)sizeof(llvm::ArrayRef);
}
JNIEXPORT
jlong JNICALL Java_com_alibaba_fastffi_clang_TemplateArgumentArray_1cxx_10x1a8a7901_nativeGet(JNIEnv*, jclass, jlong ptr, jint arg0 /* idx0 */) {
return reinterpret_cast(&((*reinterpret_cast*>(ptr))[arg0]));
}
JNIEXPORT
jint JNICALL Java_com_alibaba_fastffi_clang_TemplateArgumentArray_1cxx_10x1a8a7901_nativeSize(JNIEnv*, jclass, jlong ptr) {
return (jint)(reinterpret_cast*>(ptr)->size());
}
#ifdef __cplusplus
}
#endif