Class MachConstants


  • public final class MachConstants
    extends java.lang.Object
    • Field Summary

      Fields 
      ChangeModifier and Type Field Description
      static java.lang.String DATA_TYPE_CATEGORY  
      static int MH_CIGAM
      Intel x86 32-bit Magic Number
      static int MH_CIGAM_64
      Intel x86 64-bit Magic Number
      static int MH_MAGIC
      PowerPC 32-bit Magic Number
      static int MH_MAGIC_64
      PowerPC 64-bit Magic Number
      static int NAME_LENGTH  
    • Constructor Summary

      Constructors 
      ChangeConstructor Description
      MachConstants()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      ChangeModifier and Type Method Description
      static boolean isMagic​(int magic)
      Convenience method for matching the magic number
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • MachConstants

        public MachConstants()
    • Method Detail

      • isMagic

        public static final boolean isMagic​(int magic)
        Convenience method for matching the magic number
        Parameters:
        magic - the magic number read from the file
        Returns:
        true if the magic number matches