fn from(val: &mut Vec<u8>) -> Self {
        let data = val.as_mut_ptr();
        let len = val.len();
        let capacity = val.capacity();
        FFIByteBuffer {
            data,
            len,
            capacity,
        }
    }
/// Transform the given vector into an FFI-friendly buffer.
/// Does NOT call forget() on the underlying vector.
Transform the given vector into an FFI-friendly buffer.
Does NOT call forget() on the underlying vector.
Transform the given vector into an FFI - friendly buffer . Does NOT call forget () on the underlying vector .
fn from(val: &mut Vec<u8>) -> Self {
        let data = val.as_mut_ptr();
        let len = val.len();
        let capacity = val.capacity();
        FFIByteBuffer {
            data,
            len,
            capacity,
        }
    }
fn from ( val : & mut Vec < u8 > ) -> Self { let data = val . as_mut_ptr ( ) ; let len = val . len ( ) ; let capacity = val . capacity ( ) ; FFIByteBuffer { data , len , capacity , } }
Transform the given vector into an FFI-friendly buffer.
Transform the given vector into an FFI - friendly buffer .
val
&mut Vec<u8>
val
&mut Vec<u8>