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

JNIEXPORT
jlong JNICALL Java_com_alibaba_fastffi_stdcxx_StdVector_1cxx_10xe16f6c32_nativeAt(JNIEnv*, jclass, jlong ptr, jint arg0 /* index0 */) {
	return (jlong)(reinterpret_cast*>(ptr)->at(arg0));
}

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

JNIEXPORT
void JNICALL Java_com_alibaba_fastffi_stdcxx_StdVector_1cxx_10xe16f6c32_nativeClear(JNIEnv*, jclass, jlong ptr) {
	reinterpret_cast*>(ptr)->clear();
}

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

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

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

JNIEXPORT
void JNICALL Java_com_alibaba_fastffi_stdcxx_StdVector_1cxx_10xe16f6c32_nativePush_1back(JNIEnv*, jclass, jlong ptr, jlong arg0 /* e0 */) {
	reinterpret_cast*>(ptr)->push_back(arg0);
}

JNIEXPORT
void JNICALL Java_com_alibaba_fastffi_stdcxx_StdVector_1cxx_10xe16f6c32_nativeReserve(JNIEnv*, jclass, jlong ptr, jlong arg0 /* size0 */) {
	reinterpret_cast*>(ptr)->reserve(arg0);
}

JNIEXPORT
void JNICALL Java_com_alibaba_fastffi_stdcxx_StdVector_1cxx_10xe16f6c32_nativeResize(JNIEnv*, jclass, jlong ptr, jlong arg0 /* size0 */) {
	reinterpret_cast*>(ptr)->resize(arg0);
}

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

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

#ifdef __cplusplus
}
#endif




© 2015 - 2024 Weber Informatics LLC | Privacy Policy