mdict-parser.js
function() {
          var len = _searchTextLen(dv, offset);
          return conseq(_decoder.decode(newUint8Array(buf, offset, len)), this.forward(len + _bpu));
        }
function() {
          var len = _searchTextLen(dv, offset);
          return conseq(_decoder.decode(newUint8Array(buf, offset, len)), this.forward(len + _bpu));
        }
Read data to an Uint8Array and decode it to text with specified encoding. Text length in bytes is determined by searching terminated NUL. NOTE: After decoding the text, it is need to forward extra "tail" bytes according to specified encoding.