function CharacterMapping(length, partCount) {
            this.length = length;
            this._data = new Uint32Array(this.length);
            this._partLengths = new Uint16Array(partCount);
        }
Provides a both direction mapping between a line's character and its rendered position.