astffi.llvm.0.1.2.source-code.jni_com_alibaba_fastffi_stdcxx_StdVector_cxx_0xf1b32ca0.cc Maven / Gradle / Ivy
The newest version!
#include
#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_StdVector_1cxx_10xf1b32ca0__1elementSize_00024_00024_00024(JNIEnv*, jclass) {
return (jint)sizeof(std::vector);
}
JNIEXPORT
jlong JNICALL Java_com_alibaba_fastffi_stdcxx_StdVector_1cxx_10xf1b32ca0_nativeAt(JNIEnv*, jclass, jlong ptr, jint arg0 /* index0 */) {
return reinterpret_cast(&(reinterpret_cast*>(ptr)->at(arg0)));
}
JNIEXPORT
jlong JNICALL Java_com_alibaba_fastffi_stdcxx_StdVector_1cxx_10xf1b32ca0_nativeCapacity(JNIEnv*, jclass, jlong ptr) {
return (jlong)(reinterpret_cast*>(ptr)->capacity());
}
JNIEXPORT
void JNICALL Java_com_alibaba_fastffi_stdcxx_StdVector_1cxx_10xf1b32ca0_nativeClear(JNIEnv*, jclass, jlong ptr) {
reinterpret_cast*>(ptr)->clear();
}
JNIEXPORT
jlong JNICALL Java_com_alibaba_fastffi_stdcxx_StdVector_1cxx_10xf1b32ca0_nativeData(JNIEnv*, jclass, jlong ptr) {
return (jlong)(reinterpret_cast*>(ptr)->data());
}
JNIEXPORT
void JNICALL Java_com_alibaba_fastffi_stdcxx_StdVector_1cxx_10xf1b32ca0_nativeDelete(JNIEnv*, jclass, jlong ptr) {
delete reinterpret_cast*>(ptr);
}
JNIEXPORT
jlong JNICALL Java_com_alibaba_fastffi_stdcxx_StdVector_1cxx_10xf1b32ca0_nativeGet(JNIEnv*, jclass, jlong ptr, jint arg0 /* index0 */) {
return reinterpret_cast(&((*reinterpret_cast*>(ptr))[arg0]));
}
JNIEXPORT
void JNICALL Java_com_alibaba_fastffi_stdcxx_StdVector_1cxx_10xf1b32ca0_nativePush_1back(JNIEnv*, jclass, jlong ptr, jlong arg0 /* e0 */) {
reinterpret_cast*>(ptr)->push_back(*reinterpret_cast(arg0));
}
JNIEXPORT
void JNICALL Java_com_alibaba_fastffi_stdcxx_StdVector_1cxx_10xf1b32ca0_nativeReserve(JNIEnv*, jclass, jlong ptr, jlong arg0 /* size0 */) {
reinterpret_cast*>(ptr)->reserve(arg0);
}
JNIEXPORT
void JNICALL Java_com_alibaba_fastffi_stdcxx_StdVector_1cxx_10xf1b32ca0_nativeResize(JNIEnv*, jclass, jlong ptr, jlong arg0 /* size0 */) {
reinterpret_cast*>(ptr)->resize(arg0);
}
JNIEXPORT
jlong JNICALL Java_com_alibaba_fastffi_stdcxx_StdVector_1cxx_10xf1b32ca0_nativeSize(JNIEnv*, jclass, jlong ptr) {
return (jlong)(reinterpret_cast*>(ptr)->size());
}
JNIEXPORT
jlong JNICALL Java_com_alibaba_fastffi_stdcxx_StdVector_1cxx_10xf1b32ca0_nativeCreateFactory0(JNIEnv*, jclass) {
return reinterpret_cast(new std::vector());
}
#ifdef __cplusplus
}
#endif