Returns the byte slice stored in this buffer
(&self)
| 234 | |
| 235 | /// Returns the byte slice stored in this buffer |
| 236 | pub fn as_slice(&self) -> &[u8] { |
| 237 | unsafe { std::slice::from_raw_parts(self.ptr, self.length) } |
| 238 | } |
| 239 | |
| 240 | pub(crate) fn deallocation(&self) -> &Deallocation { |
| 241 | self.data.deallocation() |
no outgoing calls
no test coverage detected