Mutable buffer for the view. # Safety This is only safe if you have a lock on the runtime. Do not pass it directly to other threads.
(&mut self)
| 151 | /// This is only safe if you have a lock on the runtime. |
| 152 | /// Do not pass it directly to other threads. |
| 153 | pub fn as_bytes_mut(&mut self) -> Option<&mut [u8]> { |
| 154 | self.buffer |
| 155 | .as_ref() |
| 156 | .map(|b| unsafe { std::slice::from_raw_parts_mut(b.ptr.as_ptr(), b.len) }) |
| 157 | } |
| 158 | } |
no outgoing calls
no test coverage detected