astffi.llvm.0.1.2.source-code.jni_com_alibaba_fastffi_clang_DirectoryEntry_cxx_0xf7d00036.cc Maven / Gradle / Ivy
The newest version!
#include
#include
#include "clang/Basic/FileManager.h"
#ifdef __cplusplus
extern "C" {
#endif
// Common Stubs
JNIEXPORT
jint JNICALL Java_com_alibaba_fastffi_clang_DirectoryEntry_1cxx_10xf7d00036__1elementSize_00024_00024_00024(JNIEnv*, jclass) {
return (jint)sizeof(clang::DirectoryEntry);
}
JNIEXPORT
jlong JNICALL Java_com_alibaba_fastffi_clang_DirectoryEntry_1cxx_10xf7d00036_nativeGetName(JNIEnv*, jclass, jlong ptr, jlong rv_base) {
return reinterpret_cast(new((void*)rv_base) llvm::StringRef(reinterpret_cast(ptr)->getName()));
}
#ifdef __cplusplus
}
#endif