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

Method first_file

python/collaboration/merge.py:97–110  ·  view source on GitHub ↗

FileMetadata with contents of file for first snapshot This function is slow! Only use it if you really need it. :return: FileMetadata object

(self)

Source from the content-addressed store, hash-verified

95
96 @property
97 def first_file(self) -> Optional[FileMetadata]:
98 """
99 FileMetadata with contents of file for first snapshot
100 This function is slow! Only use it if you really need it.
101
102 :return: FileMetadata object
103 """
104 result = core.BNAnalysisMergeConflictGetFirstFile(self._handle)
105 if result is None:
106 return None
107 lazy = util.LazyT(handle=result)
108 file = FileMetadata(handle=ctypes.cast(lazy.get(ctypes.POINTER(core.BNFileMetadata)), ctypes.POINTER(core.BNFileMetadata)))
109 core.BNCollaborationFreeLazyT(result)
110 return file
111
112 @property
113 def second_file(self) -> Optional[FileMetadata]:

Callers

nothing calls this directly

Calls 2

getMethod · 0.95
FileMetadataClass · 0.50

Tested by

no test coverage detected