"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.StringInfo = void 0;
const image_magick_1 = require("../image-magick");
class StringInfo {
    static toArray(instance) {
        if (instance === 0)
            return null;
        const datum = image_magick_1.ImageMagick._api._StringInfo_Datum_Get(instance);
        const length = image_magick_1.ImageMagick._api._StringInfo_Length_Get(instance);
        return image_magick_1.ImageMagick._api.HEAPU8.subarray(datum, datum + length);
    }
}
exports.StringInfo = StringInfo;
