Returns the physical index at which the logical array starts. The same as calling `get_physical_index(0)` but with a fast path if the buffer is not logically sliced, in which case it always returns `0`.
(&self)
| 244 | /// The same as calling `get_physical_index(0)` but with a fast path if the |
| 245 | /// buffer is not logically sliced, in which case it always returns `0`. |
| 246 | pub fn get_start_physical_index(&self) -> usize { |
| 247 | if self.logical_offset == 0 || self.logical_length == 0 { |
| 248 | return 0; |
| 249 | } |
| 250 | // Fallback to binary search |
| 251 | self.get_physical_index(0) |
| 252 | } |
| 253 | |
| 254 | /// Returns the physical index at which the logical array ends. |
| 255 | /// |
no test coverage detected