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:
Jordan Rose
2024-03-04 16:16:07 -08:00
parent ce93eebd11
commit 2bbca60eb5
8 changed files with 72 additions and 30 deletions

View File

@@ -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())
}