MCPcopy Create free account
hub / github.com/MJx0/KittyMemoryEx / isPtrWritable

Method isPtrWritable

KittyMemoryEx/KittyPtrValidator.cpp:263–281  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

261
262 if (_parseMapsLine(line, &region))
263 {
264 if (!cachedRegions_.empty() && cachedRegions_.back().canMergeWith(region))
265 {
266 cachedRegions_.back().end = region.end;
267 }
268 else
269 {
270 cachedRegions_.emplace_back(region);
271 }
272 }
273 }
274
275 fclose(fp);
276
277 if (!cachedRegions_.empty())
278 {
279 std::sort(cachedRegions_.begin(), cachedRegions_.end(), [](const RegionInfo &a, const RegionInfo &b) {
280 return a.start < b.start;
281 });
282 }
283}
284

Callers

nothing calls this directly

Calls 1

untagHeepPtrFunction · 0.85

Tested by

no test coverage detected