(&self, len: usize)
| 60 | /// Caller must ensure `len <= capacity` and the bytes have been written. |
| 61 | #[inline] |
| 62 | pub unsafe fn as_slice(&self, len: usize) -> &[u8] { |
| 63 | unsafe { std::slice::from_raw_parts(self.ptr, len) } |
| 64 | } |
| 65 | |
| 66 | /// Copy the first `len` bytes into an owned Vec. |
| 67 | /// |
no outgoing calls