Home > Net >  How to get the hexadecimal file signature of a .swift file?
How to get the hexadecimal file signature of a .swift file?

Time:04-03

I need to get the hexadecimal file signature (and offset) of a macOS Xcode .swift file. How does one go about this?

Reference: https://www.garykessler.net/library/file_sigs.html

CodePudding user response:

You can view the magic numbers by looking at the head of a hex dump: xxd prog.swift | head

  • Related