UNPKG

mdx-m3-viewer

Version:

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

18 lines 516 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); /** * Detects if the given object is a BLP source. */ function isBlp(bytes) { if (bytes instanceof ArrayBuffer) { bytes = new Uint8Array(bytes); } if (bytes instanceof Uint8Array) { if (bytes[0] === 0x42 && bytes[1] === 0x4c && bytes[2] === 0x50 && bytes[3] === 0x31) { return true; } } return false; } exports.default = isBlp; //# sourceMappingURL=isformat.js.map