MCPcopy Create free account
hub / github.com/Vector35/binaryninja-api / get_snapshot

Method get_snapshot

python/database.py:252–257  ·  view source on GitHub ↗

Get a snapshot by its id, or None if no snapshot with that id exists

(self, id: int)

Source from the content-addressed store, hash-verified

250 return self.get_snapshot(item)
251
252 def get_snapshot(self, id: int) -> Optional[Snapshot]:
253 """Get a snapshot by its id, or None if no snapshot with that id exists"""
254 snap = core.BNGetDatabaseSnapshot(self.handle, id)
255 if snap is None:
256 return None
257 return Snapshot(handle=snap)
258
259 @property
260 def snapshots(self) -> List[Snapshot]:

Callers 1

__getitem__Method · 0.95

Calls 1

SnapshotClass · 0.70

Tested by

no test coverage detected