MCPcopy Create free account
hub / github.com/RustCrypto/utils / from_raw

Method from_raw

inout/src/inout_buf.rs:193–204  ·  view source on GitHub ↗
(
        in_ptr: *const T,
        out_ptr: *mut T,
        len: usize,
    )

Source from the content-addressed store, hash-verified

191 /// - The total size `len * mem::size_of::<T>()` must be no larger than `isize::MAX`.
192 #[inline(always)]
193 pub unsafe fn from_raw(
194 in_ptr: *const T,
195 out_ptr: *mut T,
196 len: usize,
197 ) -> InOutBuf<'inp, 'out, T> {
198 Self {
199 in_ptr,
200 out_ptr,
201 len,
202 _pd: PhantomData,
203 }
204 }
205
206 /// Divides one buffer into two at `mid` index.
207 ///

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected