public static int size(int magic) throws MachException {
		if (!MachConstants.isMagic(magic)) {
			throw new MachException("Invalid magic: 0x%x".formatted(magic));
		}
		boolean is64bit = magic == MachConstants.MH_CIGAM_64 || magic == MachConstants.MH_MAGIC_64;
		return is64bit ? 0x48 : 0x38;
	}
Gets the size a segment command would be for the given magic

@param magic The magic
@return The size in bytes a segment command would be for the given magic
@throws MachException if an invalid magic value was passed in (see {@link MachConstants})
Ghidra/Features/Base/src/main/java/ghidra/app/util/bin/format/macho/commands/SegmentCommand.java