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

Method get

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

Source from the content-addressed store, hash-verified

102 /// If `pos` greater or equal to buffer length.
103 #[inline(always)]
104 pub fn get(&mut self, pos: usize) -> InOut<'_, '_, T> {
105 assert!(pos < self.len);
106 unsafe {
107 InOut {
108 in_ptr: self.in_ptr.add(pos),
109 out_ptr: self.out_ptr.add(pos),
110 _pd: PhantomData,
111 }
112 }
113 }
114
115 /// Get input slice.
116 #[inline(always)]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected