示例#1
0
double NativeClientInterface::JavaProxy::identifier_check(const std::vector<uint8_t> & c_data, int32_t c_r, int64_t c_jret) {
    auto jniEnv = ::djinni::jniGetThreadEnv();
    ::djinni::JniLocalScope jscope(jniEnv, 10);
    const auto& data = ::djinni::JniClass<::djinni_generated::NativeClientInterface>::get();
    auto jret = jniEnv->CallDoubleMethod(Handle::get().get(), data.method_identifierCheck,
                                         ::djinni::get(::djinni::Binary::fromCpp(jniEnv, c_data)),
                                         ::djinni::get(::djinni::I32::fromCpp(jniEnv, c_r)),
                                         ::djinni::get(::djinni::I64::fromCpp(jniEnv, c_jret)));
    ::djinni::jniExceptionCheck(jniEnv);
    return ::djinni::F64::toCpp(jniEnv, jret);
}
示例#2
0
jdouble JNumber::doubleValue() {
	return CallDoubleMethod("doubleValue", "()D");
}