• Home
  • Raw
  • Download

Lines Matching refs:value

289 jspb.BinaryWriter.prototype.writeAny = function(fieldType, field, value) {  argument
293 this.writeDouble(field, /** @type {number} */(value));
296 this.writeFloat(field, /** @type {number} */(value));
299 this.writeInt64(field, /** @type {number} */(value));
302 this.writeUint64(field, /** @type {number} */(value));
305 this.writeInt32(field, /** @type {number} */(value));
308 this.writeFixed64(field, /** @type {number} */(value));
311 this.writeFixed32(field, /** @type {number} */(value));
314 this.writeBool(field, /** @type {boolean} */(value));
317 this.writeString(field, /** @type {string} */(value));
326 this.writeBytes(field, /** @type {?Uint8Array} */(value));
329 this.writeUint32(field, /** @type {number} */(value));
332 this.writeEnum(field, /** @type {number} */(value));
335 this.writeSfixed32(field, /** @type {number} */(value));
338 this.writeSfixed64(field, /** @type {number} */(value));
341 this.writeSint32(field, /** @type {number} */(value));
344 this.writeSint64(field, /** @type {number} */(value));
347 this.writeFixedHash64(field, /** @type {string} */(value));
350 this.writeVarintHash64(field, /** @type {string} */(value));
365 jspb.BinaryWriter.prototype.writeUnsignedVarint32_ = function(field, value) { argument
366 if (value == null) return;
368 this.encoder_.writeUnsignedVarint32(value);
378 jspb.BinaryWriter.prototype.writeSignedVarint32_ = function(field, value) { argument
379 if (value == null) return;
381 this.encoder_.writeSignedVarint32(value);
391 jspb.BinaryWriter.prototype.writeUnsignedVarint64_ = function(field, value) { argument
392 if (value == null) return;
394 this.encoder_.writeUnsignedVarint64(value);
404 jspb.BinaryWriter.prototype.writeSignedVarint64_ = function(field, value) { argument
405 if (value == null) return;
407 this.encoder_.writeSignedVarint64(value);
417 jspb.BinaryWriter.prototype.writeZigzagVarint32_ = function(field, value) { argument
418 if (value == null) return;
420 this.encoder_.writeZigzagVarint32(value);
430 jspb.BinaryWriter.prototype.writeZigzagVarint64_ = function(field, value) { argument
431 if (value == null) return;
433 this.encoder_.writeZigzagVarint64(value);
443 jspb.BinaryWriter.prototype.writeInt32 = function(field, value) { argument
444 if (value == null) return;
445 goog.asserts.assert((value >= -jspb.BinaryConstants.TWO_TO_31) &&
446 (value < jspb.BinaryConstants.TWO_TO_31));
447 this.writeSignedVarint32_(field, value);
457 jspb.BinaryWriter.prototype.writeInt32String = function(field, value) { argument
458 if (value == null) return;
459 var intValue = /** {number} */ parseInt(value, 10);
472 jspb.BinaryWriter.prototype.writeInt64 = function(field, value) { argument
473 if (value == null) return;
474 goog.asserts.assert((value >= -jspb.BinaryConstants.TWO_TO_63) &&
475 (value < jspb.BinaryConstants.TWO_TO_63));
476 this.writeSignedVarint64_(field, value);
485 jspb.BinaryWriter.prototype.writeInt64String = function(field, value) { argument
486 if (value == null) return;
487 var num = jspb.arith.Int64.fromString(value);
499 jspb.BinaryWriter.prototype.writeUint32 = function(field, value) { argument
500 if (value == null) return;
501 goog.asserts.assert((value >= 0) &&
502 (value < jspb.BinaryConstants.TWO_TO_32));
503 this.writeUnsignedVarint32_(field, value);
513 jspb.BinaryWriter.prototype.writeUint32String = function(field, value) { argument
514 if (value == null) return;
515 var intValue = /** {number} */ parseInt(value, 10);
528 jspb.BinaryWriter.prototype.writeUint64 = function(field, value) { argument
529 if (value == null) return;
530 goog.asserts.assert((value >= 0) &&
531 (value < jspb.BinaryConstants.TWO_TO_64));
532 this.writeUnsignedVarint64_(field, value);
541 jspb.BinaryWriter.prototype.writeUint64String = function(field, value) { argument
542 if (value == null) return;
543 var num = jspb.arith.UInt64.fromString(value);
555 jspb.BinaryWriter.prototype.writeSint32 = function(field, value) { argument
556 if (value == null) return;
557 goog.asserts.assert((value >= -jspb.BinaryConstants.TWO_TO_31) &&
558 (value < jspb.BinaryConstants.TWO_TO_31));
559 this.writeZigzagVarint32_(field, value);
569 jspb.BinaryWriter.prototype.writeSint64 = function(field, value) { argument
570 if (value == null) return;
571 goog.asserts.assert((value >= -jspb.BinaryConstants.TWO_TO_63) &&
572 (value < jspb.BinaryConstants.TWO_TO_63));
573 this.writeZigzagVarint64_(field, value);
583 jspb.BinaryWriter.prototype.writeFixed32 = function(field, value) { argument
584 if (value == null) return;
585 goog.asserts.assert((value >= 0) &&
586 (value < jspb.BinaryConstants.TWO_TO_32));
588 this.encoder_.writeUint32(value);
598 jspb.BinaryWriter.prototype.writeFixed64 = function(field, value) { argument
599 if (value == null) return;
600 goog.asserts.assert((value >= 0) &&
601 (value < jspb.BinaryConstants.TWO_TO_64));
603 this.encoder_.writeUint64(value);
613 jspb.BinaryWriter.prototype.writeSfixed32 = function(field, value) { argument
614 if (value == null) return;
615 goog.asserts.assert((value >= -jspb.BinaryConstants.TWO_TO_31) &&
616 (value < jspb.BinaryConstants.TWO_TO_31));
618 this.encoder_.writeInt32(value);
628 jspb.BinaryWriter.prototype.writeSfixed64 = function(field, value) { argument
629 if (value == null) return;
630 goog.asserts.assert((value >= -jspb.BinaryConstants.TWO_TO_63) &&
631 (value < jspb.BinaryConstants.TWO_TO_63));
633 this.encoder_.writeInt64(value);
643 jspb.BinaryWriter.prototype.writeFloat = function(field, value) { argument
644 if (value == null) return;
646 this.encoder_.writeFloat(value);
656 jspb.BinaryWriter.prototype.writeDouble = function(field, value) { argument
657 if (value == null) return;
659 this.encoder_.writeDouble(value);
668 jspb.BinaryWriter.prototype.writeBool = function(field, value) { argument
669 if (value == null) return;
670 goog.asserts.assert(goog.isBoolean(value));
672 this.encoder_.writeBool(value);
681 jspb.BinaryWriter.prototype.writeEnum = function(field, value) { argument
682 if (value == null) return;
683 goog.asserts.assert((value >= -jspb.BinaryConstants.TWO_TO_31) &&
684 (value < jspb.BinaryConstants.TWO_TO_31));
686 this.encoder_.writeSignedVarint32(value);
695 jspb.BinaryWriter.prototype.writeString = function(field, value) { argument
696 if (value == null) return;
698 this.encoder_.writeString(value);
709 jspb.BinaryWriter.prototype.writeBytes = function(field, value) { argument
710 if (value == null) return;
711 var bytes = jspb.utils.byteSourceToUint8Array(value);
727 field, value, writerCallback) { argument
728 if (value == null) return;
730 writerCallback(value, this);
746 field, value, writerCallback) { argument
747 if (value == null) return;
749 writerCallback(value, this);
760 jspb.BinaryWriter.prototype.writeFixedHash64 = function(field, value) { argument
761 if (value == null) return;
762 goog.asserts.assert(value.length == 8);
764 this.encoder_.writeFixedHash64(value);
774 jspb.BinaryWriter.prototype.writeVarintHash64 = function(field, value) { argument
775 if (value == null) return;
776 goog.asserts.assert(value.length == 8);
778 this.encoder_.writeVarintHash64(value);
789 function(field, value) { argument
790 if (value == null) return;
791 for (var i = 0; i < value.length; i++) {
792 this.writeUnsignedVarint32_(field, value[i]);
804 function(field, value) { argument
805 if (value == null) return;
806 for (var i = 0; i < value.length; i++) {
807 this.writeSignedVarint32_(field, value[i]);
819 function(field, value) { argument
820 if (value == null) return;
821 for (var i = 0; i < value.length; i++) {
822 this.writeUnsignedVarint64_(field, value[i]);
834 function(field, value) { argument
835 if (value == null) return;
836 for (var i = 0; i < value.length; i++) {
837 this.writeSignedVarint64_(field, value[i]);
848 jspb.BinaryWriter.prototype.writeRepeatedZigzag32_ = function(field, value) { argument
849 if (value == null) return;
850 for (var i = 0; i < value.length; i++) {
851 this.writeZigzagVarint32_(field, value[i]);
862 jspb.BinaryWriter.prototype.writeRepeatedZigzag_ = function(field, value) { argument
863 if (value == null) return;
864 for (var i = 0; i < value.length; i++) {
865 this.writeZigzagVarint64_(field, value[i]);
886 function(field, value) { argument
887 if (value == null) return;
888 for (var i = 0; i < value.length; i++) {
889 this.writeInt32String(field, value[i]);
910 function(field, value) { argument
911 if (value == null) return;
912 for (var i = 0; i < value.length; i++) {
913 this.writeInt64String(field, value[i]);
935 function(field, value) { argument
936 if (value == null) return;
937 for (var i = 0; i < value.length; i++) {
938 this.writeUint32String(field, value[i]);
960 function(field, value) { argument
961 if (value == null) return;
962 for (var i = 0; i < value.length; i++) {
963 this.writeUint64String(field, value[i]);
992 jspb.BinaryWriter.prototype.writeRepeatedFixed32 = function(field, value) { argument
993 if (value == null) return;
994 for (var i = 0; i < value.length; i++) {
995 this.writeFixed32(field, value[i]);
1006 jspb.BinaryWriter.prototype.writeRepeatedFixed64 = function(field, value) { argument
1007 if (value == null) return;
1008 for (var i = 0; i < value.length; i++) {
1009 this.writeFixed64(field, value[i]);
1019 jspb.BinaryWriter.prototype.writeRepeatedSfixed32 = function(field, value) { argument
1020 if (value == null) return;
1021 for (var i = 0; i < value.length; i++) {
1022 this.writeSfixed32(field, value[i]);
1032 jspb.BinaryWriter.prototype.writeRepeatedSfixed64 = function(field, value) { argument
1033 if (value == null) return;
1034 for (var i = 0; i < value.length; i++) {
1035 this.writeSfixed64(field, value[i]);
1045 jspb.BinaryWriter.prototype.writeRepeatedFloat = function(field, value) { argument
1046 if (value == null) return;
1047 for (var i = 0; i < value.length; i++) {
1048 this.writeFloat(field, value[i]);
1058 jspb.BinaryWriter.prototype.writeRepeatedDouble = function(field, value) { argument
1059 if (value == null) return;
1060 for (var i = 0; i < value.length; i++) {
1061 this.writeDouble(field, value[i]);
1071 jspb.BinaryWriter.prototype.writeRepeatedBool = function(field, value) { argument
1072 if (value == null) return;
1073 for (var i = 0; i < value.length; i++) {
1074 this.writeBool(field, value[i]);
1084 jspb.BinaryWriter.prototype.writeRepeatedEnum = function(field, value) { argument
1085 if (value == null) return;
1086 for (var i = 0; i < value.length; i++) {
1087 this.writeEnum(field, value[i]);
1097 jspb.BinaryWriter.prototype.writeRepeatedString = function(field, value) { argument
1098 if (value == null) return;
1099 for (var i = 0; i < value.length; i++) {
1100 this.writeString(field, value[i]);
1111 jspb.BinaryWriter.prototype.writeRepeatedBytes = function(field, value) { argument
1112 if (value == null) return;
1113 for (var i = 0; i < value.length; i++) {
1114 this.writeBytes(field, value[i]);
1129 field, value, writerCallback) { argument
1130 if (value == null) return;
1131 for (var i = 0; i < value.length; i++) {
1133 writerCallback(value[i], this);
1149 field, value, writerCallback) { argument
1150 if (value == null) return;
1151 for (var i = 0; i < value.length; i++) {
1153 writerCallback(value[i], this);
1166 function(field, value) { argument
1167 if (value == null) return;
1168 for (var i = 0; i < value.length; i++) {
1169 this.writeFixedHash64(field, value[i]);
1181 function(field, value) { argument
1182 if (value == null) return;
1183 for (var i = 0; i < value.length; i++) {
1184 this.writeVarintHash64(field, value[i]);
1196 field, value) { argument
1197 if (value == null || !value.length) return;
1199 for (var i = 0; i < value.length; i++) {
1200 this.encoder_.writeUnsignedVarint32(value[i]);
1213 field, value) { argument
1214 if (value == null || !value.length) return;
1216 for (var i = 0; i < value.length; i++) {
1217 this.encoder_.writeSignedVarint32(value[i]);
1230 field, value) { argument
1231 if (value == null || !value.length) return;
1233 for (var i = 0; i < value.length; i++) {
1234 this.encoder_.writeUnsignedVarint64(value[i]);
1247 field, value) { argument
1248 if (value == null || !value.length) return;
1250 for (var i = 0; i < value.length; i++) {
1251 this.encoder_.writeSignedVarint64(value[i]);
1263 jspb.BinaryWriter.prototype.writePackedZigzag32_ = function(field, value) { argument
1264 if (value == null || !value.length) return;
1266 for (var i = 0; i < value.length; i++) {
1267 this.encoder_.writeZigzagVarint32(value[i]);
1279 jspb.BinaryWriter.prototype.writePackedZigzag64_ = function(field, value) { argument
1280 if (value == null || !value.length) return;
1282 for (var i = 0; i < value.length; i++) {
1283 this.encoder_.writeZigzagVarint64(value[i]);
1304 jspb.BinaryWriter.prototype.writePackedInt32String = function(field, value) { argument
1305 if (value == null || !value.length) return;
1307 for (var i = 0; i < value.length; i++) {
1308 this.encoder_.writeSignedVarint32(parseInt(value[i], 10));
1330 function(field, value) { argument
1331 if (value == null || !value.length) return;
1333 for (var i = 0; i < value.length; i++) {
1334 var num = jspb.arith.Int64.fromString(value[i]);
1357 function(field, value) { argument
1358 if (value == null || !value.length) return;
1360 for (var i = 0; i < value.length; i++) {
1361 this.encoder_.writeUnsignedVarint32(parseInt(value[i], 10));
1383 function(field, value) { argument
1384 if (value == null || !value.length) return;
1386 for (var i = 0; i < value.length; i++) {
1387 var num = jspb.arith.UInt64.fromString(value[i]);
1417 jspb.BinaryWriter.prototype.writePackedFixed32 = function(field, value) { argument
1418 if (value == null || !value.length) return;
1420 this.encoder_.writeUnsignedVarint32(value.length * 4);
1421 for (var i = 0; i < value.length; i++) {
1422 this.encoder_.writeUint32(value[i]);
1432 jspb.BinaryWriter.prototype.writePackedFixed64 = function(field, value) { argument
1433 if (value == null || !value.length) return;
1435 this.encoder_.writeUnsignedVarint32(value.length * 8);
1436 for (var i = 0; i < value.length; i++) {
1437 this.encoder_.writeUint64(value[i]);
1447 jspb.BinaryWriter.prototype.writePackedSfixed32 = function(field, value) { argument
1448 if (value == null || !value.length) return;
1450 this.encoder_.writeUnsignedVarint32(value.length * 4);
1451 for (var i = 0; i < value.length; i++) {
1452 this.encoder_.writeInt32(value[i]);
1462 jspb.BinaryWriter.prototype.writePackedSfixed64 = function(field, value) { argument
1463 if (value == null || !value.length) return;
1465 this.encoder_.writeUnsignedVarint32(value.length * 8);
1466 for (var i = 0; i < value.length; i++) {
1467 this.encoder_.writeInt64(value[i]);
1477 jspb.BinaryWriter.prototype.writePackedFloat = function(field, value) { argument
1478 if (value == null || !value.length) return;
1480 this.encoder_.writeUnsignedVarint32(value.length * 4);
1481 for (var i = 0; i < value.length; i++) {
1482 this.encoder_.writeFloat(value[i]);
1492 jspb.BinaryWriter.prototype.writePackedDouble = function(field, value) { argument
1493 if (value == null || !value.length) return;
1495 this.encoder_.writeUnsignedVarint32(value.length * 8);
1496 for (var i = 0; i < value.length; i++) {
1497 this.encoder_.writeDouble(value[i]);
1507 jspb.BinaryWriter.prototype.writePackedBool = function(field, value) { argument
1508 if (value == null || !value.length) return;
1510 this.encoder_.writeUnsignedVarint32(value.length);
1511 for (var i = 0; i < value.length; i++) {
1512 this.encoder_.writeBool(value[i]);
1522 jspb.BinaryWriter.prototype.writePackedEnum = function(field, value) { argument
1523 if (value == null || !value.length) return;
1525 for (var i = 0; i < value.length; i++) {
1526 this.encoder_.writeEnum(value[i]);
1538 jspb.BinaryWriter.prototype.writePackedFixedHash64 = function(field, value) { argument
1539 if (value == null || !value.length) return;
1541 this.encoder_.writeUnsignedVarint32(value.length * 8);
1542 for (var i = 0; i < value.length; i++) {
1543 this.encoder_.writeFixedHash64(value[i]);
1554 jspb.BinaryWriter.prototype.writePackedVarintHash64 = function(field, value) { argument
1555 if (value == null || !value.length) return;
1557 for (var i = 0; i < value.length; i++) {
1558 this.encoder_.writeVarintHash64(value[i]);