function (view, offset, length) {
            var trmOffset = lib.locateSeq([0, 0], view, offset, length);
            if (trmOffset === -1) { return -1; }
            if ((trmOffset - offset) % 2 !== 0) { ++trmOffset; }
            return trmOffset;
        }
function (view, offset, length) {
            var trmOffset = lib.locateSeq([0, 0], view, offset, length);
            if (trmOffset === -1) { return -1; }
            if ((trmOffset - offset) % 2 !== 0) { ++trmOffset; }
            return trmOffset;
        }
function ( view , offset , length ) { var trmOffset = lib . locateSeq ( [ 0 , 0 ] , view , offset , length ) ; if ( trmOffset === - 1 ) { return - 1 ; } if ( ( trmOffset - offset ) % 2 !== 0 ) { ++ trmOffset ; } return trmOffset ; }
Locate the first occurrence of Unicode null-terminator (i.e. a sequence of two zeroed-out octets) in DataView `view`. Search starts at given `offset` and ends after `length` octets. Will return the absolute offset of sequence if found, -1 otherwise
Locate the first occurrence of Unicode null - terminator ( i . e . a sequence of two zeroed - out octets ) in DataView view . Search starts at given offset and ends after length octets . Will return the absolute offset of sequence if found - 1 otherwise