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

Method get

inout/src/inout.rs:136–145  ·  view source on GitHub ↗
(&mut self, pos: usize)

Source from the content-addressed store, hash-verified

134 /// If `pos` greater or equal to array length.
135 #[inline(always)]
136 pub fn get(&mut self, pos: usize) -> InOut<'_, '_, T> {
137 assert!(pos < N::USIZE);
138 unsafe {
139 InOut {
140 in_ptr: self.in_ptr.cast::<T>().add(pos),
141 out_ptr: self.out_ptr.cast::<T>().add(pos),
142 _pd: PhantomData,
143 }
144 }
145 }
146
147 /// Convert `InOut` array to `InOutBuf`.
148 #[inline(always)]

Callers 5

encode_blobsFunction · 0.45
is_supportedMethod · 0.45
dropMethod · 0.45
asm_wrappersFunction · 0.45
mainFunction · 0.45

Calls

no outgoing calls

Tested by 1

asm_wrappersFunction · 0.36