Lines Matching refs:pos
242 function crc32(crc, buf, len, pos) { argument
243 var t = crcTable, end = pos + len;
247 for (var i = pos; i < end; i++ ) {
266 function crc32str(crc, str, len, pos) { argument
267 var t = crcTable, end = pos + len;
271 for (var i = pos; i < end; i++ ) {
2848 var pos;
2854 pos = max-1;
2855 while (pos >= 0 && (buf[pos] & 0xC0) === 0x80) { pos--; }
2859 if (pos < 0) { return max; }
2863 if (pos === 0) { return max; }
2865 return (pos + _utf8len[buf[pos]] > max) ? pos : max;
5472 var i, l, len, pos, chunk, result;
5482 pos = 0;
5485 result.set(chunk, pos);
5486 pos += chunk.length;
5691 var pos;
5697 pos = max - 1;
5698 while (pos >= 0 && (buf[pos] & 0xC0) === 0x80) { pos--; }
5702 if (pos < 0) { return max; }
5706 if (pos === 0) { return max; }
5708 return (pos + _utf8len[buf[pos]] > max) ? pos : max;
5737 function adler32(adler, buf, len, pos) { argument
5750 s1 = (s1 + buf[pos++]) |0;
5879 function crc32(crc, buf, len, pos) { argument
5881 end = pos + len;
5885 for (var i = pos; i < end; i++) {