mirror of
https://github.com/signalapp/libsignal.git
synced 2026-04-25 17:25:18 +02:00
bridge: Add ResultTypeInfo for Box<[Vec<u8>]>
Not actually distinct from Vec<Vec<u8>>, but works better with the jni_result_type and ffi_result_type macros because `[Vec<u8>]` is a single grouped token tree. Generalizes the string array helpers to support bytestrings too.
This commit is contained in:
@@ -50,7 +50,7 @@ pub unsafe extern "C" fn signal_free_lookup_response_entry_list(
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
pub unsafe extern "C" fn signal_free_string_array(array: StringArray) {
|
||||
pub unsafe extern "C" fn signal_free_bytestring_array(array: BytestringArray) {
|
||||
drop(array.into_boxed_parts())
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user