4 #ifndef DJINNI_GENERATED_HASHALGORITHMHELPER_HPP_JNI_ 5 #define DJINNI_GENERATED_HASHALGORITHMHELPER_HPP_JNI_ 7 #include "../../api/HashAlgorithmHelper.hpp" 8 #include "djinni_support.hpp" 14 using CppType = std::shared_ptr<::ledger::core::api::HashAlgorithmHelper>;
15 using CppOptType = std::shared_ptr<::ledger::core::api::HashAlgorithmHelper>;
16 using JniType = jobject;
22 static CppType toCpp(JNIEnv* jniEnv, JniType j) { return ::djinni::JniClass<HashAlgorithmHelper>::get()._fromJava(jniEnv, j); }
24 static ::djinni::LocalRef<JniType> fromCpp(JNIEnv* jniEnv,
const CppType& c) {
return fromCppOpt(jniEnv, c); }
28 friend ::djinni::JniClass<HashAlgorithmHelper>;
29 friend ::djinni::JniInterface<::ledger::core::api::HashAlgorithmHelper, HashAlgorithmHelper>;
37 std::vector<uint8_t> ripemd160(
const std::vector<uint8_t> & data)
override;
38 std::vector<uint8_t> sha256(
const std::vector<uint8_t> & data)
override;
39 std::vector<uint8_t> keccak256(
const std::vector<uint8_t> & data)
override;
42 friend ::djinni::JniInterface<::ledger::core::api::HashAlgorithmHelper, ::djinni_generated::HashAlgorithmHelper>;
45 const ::djinni::GlobalRef<jclass> clazz { ::djinni::jniFindClass(
"co/ledger/core/HashAlgorithmHelper") };
46 const jmethodID method_ripemd160 { ::djinni::jniGetMethodID(clazz.get(),
"ripemd160",
"([B)[B") };
47 const jmethodID method_sha256 { ::djinni::jniGetMethodID(clazz.get(),
"sha256",
"([B)[B") };
48 const jmethodID method_keccak256 { ::djinni::jniGetMethodID(clazz.get(),
"keccak256",
"([B)[B") };
52 #endif //DJINNI_GENERATED_HASHALGORITHMHELPER_HPP_JNI_ Definition: HashAlgorithmHelper.hpp:12
Definition: Account.cpp:22
Definition: proxy_cache_interface.hpp:131
Definition: HashAlgorithmHelper.hpp:20
Definition: djinni_support.hpp:223
Definition: djinni_support.hpp:379