UNPKG

mdx-m3-viewer

Version:

A browser WebGL model viewer. Mainly focused on models of the games Warcraft 3 and Starcraft 2.

18 lines 514 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); /** * Detects if the given object is an M3 source. */ function isM3(bytes) { if (bytes instanceof ArrayBuffer) { bytes = new Uint8Array(bytes); } if (bytes instanceof Uint8Array) { if (bytes[0] === 0x34 && bytes[1] === 0x33 && bytes[2] === 0x44 && bytes[3] === 0x4d) { return true; } } return false; } exports.default = isM3; //# sourceMappingURL=isformat.js.map