@shockpkg/dir-projector
Version:
Package for creating Shockwave Director projectors
49 lines (48 loc) • 1.31 kB
TypeScript
/**
* Mach-O type.
*/
export interface IMachoType {
/**
* CPU type.
*/
cpuType: number;
/**
* CPU subtype.
*/
cpuSubtype: number;
}
/**
* Get types of Mach-O data, array if FAT binary, else a single object.
*
* @param data Mach-O data.
* @returns Mach-O types.
*/
export declare function machoTypesData(data: Readonly<Uint8Array>): IMachoType | IMachoType[];
/**
* Get types of Mach-O file, array if FAT binary, else a single object.
*
* @param path Mach-O file.
* @returns Mach-O types.
*/
export declare function machoTypesFile(path: string): Promise<IMachoType | IMachoType[]>;
/**
* Get Mach-O app launcher for a single type.
*
* @param type Mach-O type.
* @returns Launcher data.
*/
export declare function machoAppLauncherThin(type: Readonly<IMachoType>): Promise<Uint8Array>;
/**
* Get Mach-O app launcher for a type list.
*
* @param types Mach-O types.
* @returns Launcher data.
*/
export declare function machoAppLauncherFat(types: readonly Readonly<IMachoType>[]): Promise<Uint8Array>;
/**
* Get Mach-O app launcher for a single or multiple types.
*
* @param types Mach-O types.
* @returns Launcher data.
*/
export declare function machoAppLauncher(types: Readonly<IMachoType> | readonly Readonly<IMachoType>[]): Promise<Uint8Array>;