astffi.llvm.0.1.2.source-code.jni_com_alibaba_fastffi_llvm_StringRef_cxx_0xe9c826cb.cc Maven / Gradle / Ivy
The newest version!
#include
#include
#include "llvm/ADT/StringRef.h"
#ifdef __cplusplus
extern "C" {
#endif
// Common Stubs
JNIEXPORT
jint JNICALL Java_com_alibaba_fastffi_llvm_StringRef_1cxx_10xe9c826cb__1elementSize_00024_00024_00024(JNIEnv*, jclass) {
return (jint)sizeof(llvm::StringRef);
}
JNIEXPORT
jlong JNICALL Java_com_alibaba_fastffi_llvm_StringRef_1cxx_10xe9c826cb_nativeData(JNIEnv*, jclass, jlong ptr) {
return (jlong)(reinterpret_cast(ptr)->data());
}
JNIEXPORT
void JNICALL Java_com_alibaba_fastffi_llvm_StringRef_1cxx_10xe9c826cb_nativeDelete(JNIEnv*, jclass, jlong ptr) {
delete reinterpret_cast(ptr);
}
JNIEXPORT
jboolean JNICALL Java_com_alibaba_fastffi_llvm_StringRef_1cxx_10xe9c826cb_nativeEquals0(JNIEnv*, jclass, jlong ptr, jlong arg0 /* rhs0 */) {
return (reinterpret_cast(ptr)->equals(*reinterpret_cast(arg0))) ? JNI_TRUE : JNI_FALSE;
}
JNIEXPORT
jboolean JNICALL Java_com_alibaba_fastffi_llvm_StringRef_1cxx_10xe9c826cb_nativeEquals1(JNIEnv*, jclass, jlong ptr, jlong arg0 /* rhs0 */) {
return (reinterpret_cast(ptr)->equals(*reinterpret_cast(arg0))) ? JNI_TRUE : JNI_FALSE;
}
JNIEXPORT
jlong JNICALL Java_com_alibaba_fastffi_llvm_StringRef_1cxx_10xe9c826cb_nativeSize(JNIEnv*, jclass, jlong ptr) {
return (jlong)(reinterpret_cast(ptr)->size());
}
JNIEXPORT
jlong JNICALL Java_com_alibaba_fastffi_llvm_StringRef_1cxx_10xe9c826cb_nativeCreateFactory0(JNIEnv*, jclass) {
return reinterpret_cast(new llvm::StringRef());
}
JNIEXPORT
jlong JNICALL Java_com_alibaba_fastffi_llvm_StringRef_1cxx_10xe9c826cb_nativeCreateFactory1(JNIEnv*, jclass, jlong arg0 /* buf0 */) {
return reinterpret_cast(new llvm::StringRef(reinterpret_cast(arg0)));
}
JNIEXPORT
jlong JNICALL Java_com_alibaba_fastffi_llvm_StringRef_1cxx_10xe9c826cb_nativeCreateFactory2(JNIEnv*, jclass, jlong arg0 /* buf0 */, jlong arg1 /* length1 */) {
return reinterpret_cast(new llvm::StringRef(reinterpret_cast(arg0), arg1));
}
JNIEXPORT
jlong JNICALL Java_com_alibaba_fastffi_llvm_StringRef_1cxx_10xe9c826cb_nativeCreateFactory3(JNIEnv*, jclass, jlong arg0 /* stdString0 */) {
return reinterpret_cast(new llvm::StringRef(*reinterpret_cast(arg0)));
}
#ifdef __cplusplus
}
#endif