astro-ghostcms/.pnpm-store/v3/files/de/f6917a0f3c700a8524deeb33d21...

18 lines
443 B
Plaintext

import { ICO } from "./ico.js";
import { readUInt16LE } from "./utils.js";
const TYPE_CURSOR = 2;
const CUR = {
validate(input) {
const reserved = readUInt16LE(input, 0);
const imageCount = readUInt16LE(input, 4);
if (reserved !== 0 || imageCount === 0)
return false;
const imageType = readUInt16LE(input, 2);
return imageType === TYPE_CURSOR;
},
calculate: (input) => ICO.calculate(input)
};
export {
CUR
};