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

Method parents

python/database.py:175–187  ·  view source on GitHub ↗

Get a list of all parent snapshots of the snapshot (read-only)

(self)

Source from the content-addressed store, hash-verified

173
174 @property
175 def parents(self) -> List['Snapshot']:
176 """Get a list of all parent snapshots of the snapshot (read-only)"""
177 count = ctypes.c_ulonglong(0)
178 parents = core.BNGetSnapshotParents(self.handle, count)
179
180 result = []
181 try:
182 for i in range(0, count.value):
183 handle = core.BNNewSnapshotReference(parents[i])
184 result.append(Snapshot(handle=handle))
185 return result
186 finally:
187 core.BNFreeSnapshotList(parents, count)
188
189 @property
190 def children(self) -> List['Snapshot']:

Callers

nothing calls this directly

Calls 2

SnapshotClass · 0.70
appendMethod · 0.45

Tested by

no test coverage detected