astffi.llvm.0.1.2.source-code.jni_com_alibaba_fastffi_stdcxx_StdVectorLite_cxx_0x2128e224.cc Maven / Gradle / Ivy
The newest version!
#include
#include
#include
#include
#include
#include "clang/Frontend/ASTUnit.h"
#ifdef __cplusplus
extern "C" {
#endif
// Common Stubs
JNIEXPORT
jint JNICALL Java_com_alibaba_fastffi_stdcxx_StdVectorLite_1cxx_10x2128e224__1elementSize_00024_00024_00024(JNIEnv*, jclass) {
return (jint)sizeof(std::vector>);
}
JNIEXPORT
void JNICALL Java_com_alibaba_fastffi_stdcxx_StdVectorLite_1cxx_10x2128e224_nativeDelete(JNIEnv*, jclass, jlong ptr) {
delete reinterpret_cast>*>(ptr);
}
JNIEXPORT
jlong JNICALL Java_com_alibaba_fastffi_stdcxx_StdVectorLite_1cxx_10x2128e224_nativeGet(JNIEnv*, jclass, jlong ptr, jint arg0 /* index0 */) {
return reinterpret_cast(&((*reinterpret_cast>*>(ptr))[arg0]));
}
JNIEXPORT
jlong JNICALL Java_com_alibaba_fastffi_stdcxx_StdVectorLite_1cxx_10x2128e224_nativeSize(JNIEnv*, jclass, jlong ptr) {
return (jlong)(reinterpret_cast>*>(ptr)->size());
}
JNIEXPORT
jlong JNICALL Java_com_alibaba_fastffi_stdcxx_StdVectorLite_1cxx_10x2128e224_nativeCreateFactory0(JNIEnv*, jclass) {
return reinterpret_cast(new std::vector>());
}
#ifdef __cplusplus
}
#endif