equal
deleted
inserted
replaced
518 unsafe fn mmap_keeparound( |
518 unsafe fn mmap_keeparound( |
519 py: Python, |
519 py: Python, |
520 data: PyObject, |
520 data: PyObject, |
521 ) -> PyResult<( |
521 ) -> PyResult<( |
522 PyBuffer, |
522 PyBuffer, |
523 Box<dyn std::ops::Deref<Target = [u8]> + Send + 'static>, |
523 Box<dyn std::ops::Deref<Target = [u8]> + Send + Sync + 'static>, |
524 )> { |
524 )> { |
525 let buf = PyBuffer::get(py, &data)?; |
525 let buf = PyBuffer::get(py, &data)?; |
526 let len = buf.item_count(); |
526 let len = buf.item_count(); |
527 |
527 |
528 // Build a slice from the mmap'ed buffer data |
528 // Build a slice from the mmap'ed buffer data |