MCPcopy Create free account
hub / github.com/lief-project/LIEF / print_segment_split_info

Function print_segment_split_info

api/python/examples/macho_reader.py:410–422  ·  view source on GitHub ↗
(binary)

Source from the content-addressed store, hash-verified

408
409@exceptions_handler(Exception)
410def print_segment_split_info(binary):
411 format_str = "{:<13} {:<30}"
412 format_hex = "{:<13} 0x{:<28x}"
413 format_dec = "{:<13} {:<30d}"
414
415 print("== Segment Split Info ==")
416
417 sinfo = binary.segment_split_info
418
419 print(format_hex.format("Offset:", sinfo.data_offset))
420 print(format_hex.format("Size:", sinfo.data_size))
421
422 print("")
423
424
425@exceptions_handler(Exception)

Callers 1

mainFunction · 0.85

Calls 2

printFunction · 0.50
formatMethod · 0.45

Tested by

no test coverage detected