Lines Matching refs:val

637 	Buffer.prototype.indexOf = function indexOf (val, byteOffset) {
648 if (typeof val === 'string') {
649 if (val.length === 0) return -1 // special case: looking for empty string always fails
650 return String.prototype.indexOf.call(this, val, byteOffset)
652 if (Buffer.isBuffer(val)) {
653 return arrayIndexOf(this, val, byteOffset)
655 if (typeof val === 'number') {
657 return Uint8Array.prototype.indexOf.call(this, val, byteOffset)
659 return arrayIndexOf(this, [ val ], byteOffset)
662 function arrayIndexOf (arr, val, byteOffset) {
665 if (arr[byteOffset + i] === val[foundIndex === -1 ? 0 : i - foundIndex]) {
667 if (i - foundIndex + 1 === val.length) return byteOffset + foundIndex
1012 var val = this[offset]
1016 val += this[offset + i] * mul
1019 return val
1029 var val = this[offset + --byteLength]
1032 val += this[offset + --byteLength] * mul
1035 return val
1076 var val = this[offset]
1080 val += this[offset + i] * mul
1084 if (val >= mul) val -= Math.pow(2, 8 * byteLength)
1086 return val
1096 var val = this[offset + --i]
1098 val += this[offset + --i] * mul
1102 if (val >= mul) val -= Math.pow(2, 8 * byteLength)
1104 return val
1115 var val = this[offset] | (this[offset + 1] << 8)
1116 return (val & 0x8000) ? val | 0xFFFF0000 : val
1121 var val = this[offset + 1] | (this[offset] << 8)
1122 return (val & 0x8000) ? val | 0xFFFF0000 : val
1990 module.exports = isArray || function (val) {
1991 return !! val && '[object Array]' == str.call(val);
15170 function fontStringify(key, val) {
15174 return val;
17057 var key, val, _ref, _ref1;
17090 val = _ref1[key];
17091 this.info[key] = val;
17212 var font, key, name, val, _ref, _ref1;
17217 val = _ref[key];
17218 if (typeof val === 'string') {
17219 val = new String(val);
17221 this._info.data[key] = val;
20172 var e, i, isUnicode, items, key, out, string, val, _i, _ref;
20210 val = object[key];
20211 out.push('/' + key + ' ' + PDFObject.convert(val));
22642 var beg, val; // for gzip header write only
22781 val = 1;
22787 val = s.gzhead.name.charCodeAt(s.gzindex++) & 0xff;
22789 val = 0;
22791 put_byte(s, val);
22792 } while (val !== 0);
22797 if (val === 0) {
22819 val = 1;
22825 val = s.gzhead.comment.charCodeAt(s.gzindex++) & 0xff;
22827 val = 0;
22829 put_byte(s, val);
22830 } while (val !== 0);
22835 if (val === 0) {
26855 array.forEach(function(val, idx) {
26856 hash[val] = true;
29540 Data.prototype.writeBool = function(val) {
29541 return this.writeByte(val ? 1 : 0);
29553 Data.prototype.writeUInt32 = function(val) {
29554 this.writeByte((val >>> 24) & 0xff);
29555 this.writeByte((val >> 16) & 0xff);
29556 this.writeByte((val >> 8) & 0xff);
29557 return this.writeByte(val & 0xff);
29570 Data.prototype.writeInt32 = function(val) {
29571 if (val < 0) {
29572 val += 0x100000000;
29574 return this.writeUInt32(val);
29584 Data.prototype.writeUInt16 = function(val) {
29585 this.writeByte((val >> 8) & 0xff);
29586 return this.writeByte(val & 0xff);
29599 Data.prototype.writeInt16 = function(val) {
29600 if (val < 0) {
29601 val += 0x10000;
29603 return this.writeUInt16(val);
29615 Data.prototype.writeString = function(val) {
29618 …for (i = _i = 0, _ref = val.length; 0 <= _ref ? _i < _ref : _i > _ref; i = 0 <= _ref ? ++_i : --_i…
29619 _results.push(this.writeByte(val.charCodeAt(i)));
29633 Data.prototype.writeShort = function(val) {
29634 return this.writeInt16(val);
29653 Data.prototype.writeLongLong = function(val) {
29655 high = Math.floor(val / 0x100000000);
29656 low = val & 0xffffffff;
29671 Data.prototype.writeInt = function(val) {
29672 return this.writeInt32(val);
29998 …nameID, nameTable, postscriptName, strCount, strTable, string, strings, table, val, _i, _len, _ref;
30002 val = _ref[id];
30003 strings[id] = val;
30180 var key, ret, val;
30183 val = object[key];
30184 ret[val] = key;
31500 var ret, roman, unicode, unicodeCmap, val, _ref;
31506 val = unicodeCmap[unicode];
31507 if ((val != null) && __indexOf.call(ret, val) < 0) {
31508 ret.push(val);
31755 var key, margins, val, _ref;
31778 val = _ref[key];
31781 options[key] = val;
65425 var mask, palette, params, rgb, val, x, _i, _len;
65456 val = this.image.transparency.greyscale;
65457 return this.obj.data['Mask'] = [val, val];
65899 var key, ref, val;
65913 val = options[key];
65914 options[key[0].toUpperCase() + key.slice(1)] = val;