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

Method from_raw

inout/src/reserved.rs:68–81  ·  view source on GitHub ↗
(
        in_ptr: *const T,
        in_len: usize,
        out_ptr: *mut T,
        out_len: usize,
    )

Source from the content-addressed store, hash-verified

66 /// `out_len * mem::size_of::<T>()` must be no larger than `isize::MAX`.
67 #[inline(always)]
68 pub unsafe fn from_raw(
69 in_ptr: *const T,
70 in_len: usize,
71 out_ptr: *mut T,
72 out_len: usize,
73 ) -> Self {
74 Self {
75 in_ptr,
76 out_ptr,
77 in_len,
78 out_len,
79 _pd: PhantomData,
80 }
81 }
82
83 /// Get raw input and output pointers.
84 #[inline(always)]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected