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_SmallVectorImpl_cxx_0xa936305c.cc Maven / Gradle / Ivy

The newest version!
#include 
#include 
#include "llvm/ADT/SmallVector.h"
#include "clang/AST/ASTContext.h"
#include "clang/AST/TemplateBase.h"

#ifdef __cplusplus
extern "C" {
#endif

// Common Stubs

JNIEXPORT
jint JNICALL Java_com_alibaba_fastffi_llvm_SmallVectorImpl_1cxx_10xa936305c__1elementSize_00024_00024_00024(JNIEnv*, jclass) {
    return (jint)sizeof(llvm::SmallVectorImpl);
}

JNIEXPORT
void JNICALL Java_com_alibaba_fastffi_llvm_SmallVectorImpl_1cxx_10xa936305c_nativeDelete(JNIEnv*, jclass, jlong ptr) {
	delete reinterpret_cast*>(ptr);
}

JNIEXPORT
jlong JNICALL Java_com_alibaba_fastffi_llvm_SmallVectorImpl_1cxx_10xa936305c_nativeGet(JNIEnv*, jclass, jlong ptr, jlong arg0 /* index0 */) {
	return reinterpret_cast(&((*reinterpret_cast*>(ptr))[arg0]));
}

JNIEXPORT
jlong JNICALL Java_com_alibaba_fastffi_llvm_SmallVectorImpl_1cxx_10xa936305c_nativeSize(JNIEnv*, jclass, jlong ptr) {
	return (jlong)(reinterpret_cast*>(ptr)->size());
}

#ifdef __cplusplus
}
#endif




© 2015 - 2024 Weber Informatics LLC | Privacy Policy