import { assert } from "../../assert.js";

export class Mark {
    /**
     *
     * @type {number}
     */
    memoryUsage = 0;

    /**
     * @template D
     * @param {number} index
     * @param {D} description
     * @constructor
     */
    constructor(index, description) {
        assert.isNumber(index, 'index');

        /**
         *
         * @type {number}
         */
        this.index = index;

        /**
         *
         * @type {D}
         */
        this.description = description;

    }
}
