pub fn slice_to_byte_array<'a, 'b>(
env: &'a JNIEnv<'a>,
slice: &'b [u8],
) -> Result<jbyteArray>
Expand description
Create a new Java byte array from the given slice.
ยงArguments
env
- Java environment in which to create the new byte array.slice
- Slice to convert into a byte array.