Return the number of the segments in the binary. Return Value: number of segments in the binary
(self)
| 333 | |
| 334 | # Overridden base function |
| 335 | def numSegments(self): |
| 336 | """Return the number of the segments in the binary. |
| 337 | |
| 338 | Return Value: |
| 339 | number of segments in the binary |
| 340 | """ |
| 341 | return len(list(idautils.Segments())) |
| 342 | |
| 343 | # Overridden base function |
| 344 | def segmentName(self, idx): |