function $0b4b8223d505c909$var$utf16Text(buf, i) {
    if ((buf.length - i) % 2 === 0) {
        var r = buf.toString('utf16le', i);
        if (r) {
            var c = r.charCodeAt(r.length - 1);
            if (c >= 55296 && c <= 56319) {
                this.lastNeed = 2;
                this.lastTotal = 4;
                this.lastChar[0] = buf[buf.length - 2];
                this.lastChar[1] = buf[buf.length - 1];
                return r.slice(0, -1);
            }
        }
        return r;
    }
    this.lastNeed = 1;
    this.lastTotal = 2;
    this.lastChar[0] = buf[buf.length - 1];
    return buf.toString('utf16le', i, buf.length - 1);
}
// decode the last character properly.
decode the last character properly.
decode the last character properly .
function $0b4b8223d505c909$var$utf16Text(buf, i) {
    if ((buf.length - i) % 2 === 0) {
        var r = buf.toString('utf16le', i);
        if (r) {
            var c = r.charCodeAt(r.length - 1);
            if (c >= 55296 && c <= 56319) {
                this.lastNeed = 2;
                this.lastTotal = 4;
                this.lastChar[0] = buf[buf.length - 2];
                this.lastChar[1] = buf[buf.length - 1];
                return r.slice(0, -1);
            }
        }
        return r;
    }
    this.lastNeed = 1;
    this.lastTotal = 2;
    this.lastChar[0] = buf[buf.length - 1];
    return buf.toString('utf16le', i, buf.length - 1);
}
function $0b4b8223d505c909$var$utf16Text ( buf , i ) { if ( ( buf . length - i ) % 2 === 0 ) { var r = buf . toString ( 'utf16le' , i ) ; if ( r ) { var c = r . charCodeAt ( r . length - 1 ) ; if ( c >= 55296 && c <= 56319 ) { this . lastNeed = 2 ; this . lastTotal = 4 ; this . lastChar [ 0 ] = buf [ buf . length - 2 ] ; this . lastChar [ 1 ] = buf [ buf . length - 1 ] ; return r . slice ( 0 , - 1 ) ; } } return r ; } this . lastNeed = 1 ; this . lastTotal = 2 ; this . lastChar [ 0 ] = buf [ buf . length - 1 ] ; return buf . toString ( 'utf16le' , i , buf . length - 1 ) ; }
decode the last character properly.
decode the last character properly .