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_stdcxx_StdVectorLite_cxx_0xf1b32ca0.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_10xf1b32ca0__1elementSize_00024_00024_00024(JNIEnv*, jclass) {
    return (jint)sizeof(std::vector);
}

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

JNIEXPORT
jlong JNICALL Java_com_alibaba_fastffi_stdcxx_StdVectorLite_1cxx_10xf1b32ca0_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_10xf1b32ca0_nativeSize(JNIEnv*, jclass, jlong ptr) {
	return (jlong)(reinterpret_cast*>(ptr)->size());
}

JNIEXPORT
jlong JNICALL Java_com_alibaba_fastffi_stdcxx_StdVectorLite_1cxx_10xf1b32ca0_nativeCreateFactory0(JNIEnv*, jclass) {
	return reinterpret_cast(new std::vector());
}

#ifdef __cplusplus
}
#endif




© 2015 - 2024 Weber Informatics LLC | Privacy Policy