Crate wedpr_ffi_macros[−][src]
Library of macros for FFI (adapting Rust to other programming languages).
Modules
binary |
Macros
c_check_exact_buffer_size | Check whether a C buffer pointer has the expected buffer size. |
c_safe_bytes_to_c_char_pointer | Converts Rust bytes to C char pointer, and returns NULL if failed. |
c_safe_bytes_to_proto_with_error_value | Converts Rust bytes to Rust proto, and returns a specified error value if failed. |
c_safe_c_char_pointer_to_bytes | Converts C char pointer to Rust bytes, and returns NULL if failed. |
c_safe_c_char_pointer_to_bytes_utf8 | Converts C char pointer to Rust bytes without decoding, and returns NULL if failed. |
c_safe_c_char_pointer_to_bytes_utf8_with_error_value | Converts C char pointer to Rust bytes without decoding, and returns a specified error value if failed. |
c_safe_c_char_pointer_to_bytes_with_error_value | Converts C char pointer to Rust bytes, and returns a specified error value if failed. |
c_safe_c_char_pointer_to_proto | Converts C char pointer to Rust proto, and returns NULL if failed. |
c_safe_c_char_pointer_to_proto_with_error_value | Converts C char pointer to Rust proto, and returns a specified error value if failed. |
c_safe_c_char_pointer_to_string | Converts C char pointer to Rust string, and returns NULL if failed. |
c_safe_c_char_pointer_to_string_with_error_value | Converts C char pointer to Rust string, and returns a specified error value if failed. |
c_safe_proto_to_c_char_pointer | Converts Rust protobuf to C char pointer, and returns NULL if failed. |
c_safe_return | Returns C data, and returns NULL if any exception occurred. |
c_safe_return_with_error_value | Returns C data, and returns a specified error value if any exception occurred. |
c_safe_string_to_bytes_with_error_value | Converts Rust String to Rust bytes, and returns a specified error value if failed. |
c_safe_string_to_c_char_pointer | Converts Rust string to C char pointer, and returns NULL if failed. |
c_safe_string_to_c_char_pointer_with_error_value | Converts Rust string to C char pointer, and returns a specified error value if failed. |
encodable_struct_to_string | Converts encodable Rust struct to Rust string, which a implemented encode function. |
java_safe_bytes_to_jbyte_array | Converts Rust String to Java byte array, and returns an error object if failed. |
java_safe_bytes_to_jbytebuffer | Converts Rust String to Java ByteBuffer, and returns an error object if failed. |
java_safe_bytes_to_pb | Converts Rust bytes to Rust protobuf, and returns an error object if failed. |
java_safe_jbytes_to_bytes | Converts Java byte array to Rust bytes, and returns an error object if failed. |
java_safe_jstring_to_bytes | Converts Java String to Rust bytes, and returns an error object if failed. |
java_safe_jstring_to_bytes_utf8 | Converts Java String to Rust bytes without decoding, and returns an error object if failed. |
java_safe_jstring_to_pb | Converts Java String to Rust protobuf, and returns an error object if failed. |
java_safe_jstring_to_string | Converts Java String to Rust String, and returns an error object if failed. |
java_safe_pb_to_bytes | Converts Rust protobuf to Rust bytes, and returns an error object if failed. |
java_safe_set_boolean_field | Sets a field of boolean type, and returns an error object if failed. |
java_safe_set_byte_array_field | Sets a field of bytes type, and returns an error object if failed. |
java_safe_set_byte_field | Sets a field of byte type, and returns an error object if failed. |
java_safe_set_bytes_field | Sets a field of bytes type, and returns an error object if failed. |
java_safe_set_encoded_pb_field | Sets a field of encoded protobuf type, and returns an error object if failed. |
java_safe_set_field | Sets a field of a Java object, and returns an error object if failed. |
java_safe_set_int_field | Sets a field of int type, and returns an error object if failed. |
java_safe_set_long_field | Sets a field of long type, and returns an error object if failed. |
java_safe_set_string_field | Sets a field of String type, and returns an error object if failed. |
java_safe_string_to_bytes | Converts Rust string to Rust bytes, and returns an error object if failed. |
java_safe_string_to_jstring | Converts Rust String to Java String, and returns an error object if failed. |