MCPcopy Index your code
hub / github.com/RustPython/RustPython / is_in_current_chunk

Method is_in_current_chunk

crates/vm/src/datastack.rs:147–150  ·  view source on GitHub ↗
(&self, ptr: *mut u8)

Source from the content-addressed store, hash-verified

145 /// (e.g. on Windows where newer chunks may be at lower addresses).
146 #[inline(always)]
147 fn is_in_current_chunk(&self, ptr: *mut u8) -> bool {
148 let chunk_start = unsafe { (*self.chunk).data_start() };
149 ptr >= chunk_start && ptr <= self.limit
150 }
151
152 /// Slow path: pop back to a previous chunk.
153 #[cold]

Callers 2

popMethod · 0.80
pop_slowMethod · 0.80

Calls 1

data_startMethod · 0.80

Tested by

no test coverage detected