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

The newest version!
#include 
#include 
#include "llvm/Support/raw_ostream.h"

#ifdef __cplusplus
extern "C" {
#endif

// Common Stubs

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

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

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

JNIEXPORT
void JNICALL Java_com_alibaba_fastffi_llvm_StringOStream_1cxx_10x4b65f96f_nativeEnable_1colors(JNIEnv*, jclass, jlong ptr, jboolean arg0 /* enable0 */) {
	reinterpret_cast(ptr)->enable_colors((arg0 == JNI_TRUE ? true : false));
}

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

JNIEXPORT
jlong JNICALL Java_com_alibaba_fastffi_llvm_StringOStream_1cxx_10x4b65f96f_nativeStr(JNIEnv*, jclass, jlong ptr) {
	return reinterpret_cast(&(reinterpret_cast(ptr)->str()));
}

JNIEXPORT
jlong JNICALL Java_com_alibaba_fastffi_llvm_StringOStream_1cxx_10x4b65f96f_nativeCreateFactory0(JNIEnv*, jclass, jlong arg0 /* OS0 */) {
	return reinterpret_cast(new llvm::raw_string_ostream(*reinterpret_cast(arg0)));
}

#ifdef __cplusplus
}
#endif




© 2015 - 2024 Weber Informatics LLC | Privacy Policy