Lines Matching refs:field

38  * all the fundamental field types used in protocol buffers.
126 * Begins a new message by writing the field header and returning a bookmark
128 * @param {number} field
132 jspb.BinaryWriter.prototype.beginDelimited_ = function(field) {
133 this.writeFieldHeader_(field, jspb.BinaryConstants.WireType.DELIMITED);
251 * @param {number} field The field number of the sub-message.
253 jspb.BinaryWriter.prototype.beginSubMessage = function(field) {
254 this.bookmarks_.push(this.beginDelimited_(field));
269 * Encodes a (field number, wire type) tuple into a wire-format field header
271 * @param {number} field The field number.
272 * @param {number} wireType The wire-type of the field, as specified in the
277 function(field, wireType) {
278 goog.asserts.assert(field >= 1 && field == Math.floor(field));
279 var x = field * 8 + wireType;
285 * Writes a field of any valid scalar type to the binary stream.
287 * @param {number} field
290 jspb.BinaryWriter.prototype.writeAny = function(fieldType, field, value) {
294 this.writeDouble(field, /** @type {number} */(value));
297 this.writeFloat(field, /** @type {number} */(value));
300 this.writeInt64(field, /** @type {number} */(value));
303 this.writeUint64(field, /** @type {number} */(value));
306 this.writeInt32(field, /** @type {number} */(value));
309 this.writeFixed64(field, /** @type {number} */(value));
312 this.writeFixed32(field, /** @type {number} */(value));
315 this.writeBool(field, /** @type {boolean} */(value));
318 this.writeString(field, /** @type {string} */(value));
321 goog.asserts.fail('Group field type not supported in writeAny()');
324 goog.asserts.fail('Message field type not supported in writeAny()');
327 this.writeBytes(field, /** @type {?Uint8Array} */(value));
330 this.writeUint32(field, /** @type {number} */(value));
333 this.writeEnum(field, /** @type {number} */(value));
336 this.writeSfixed32(field, /** @type {number} */(value));
339 this.writeSfixed64(field, /** @type {number} */(value));
342 this.writeSint32(field, /** @type {number} */(value));
345 this.writeSint64(field, /** @type {number} */(value));
348 this.writeFixedHash64(field, /** @type {string} */(value));
351 this.writeVarintHash64(field, /** @type {string} */(value));
354 goog.asserts.fail('Invalid field type in writeAny()');
361 * Writes a varint field to the buffer without range checking.
362 * @param {number} field The field number.
366 jspb.BinaryWriter.prototype.writeUnsignedVarint32_ = function(field, value) {
368 this.writeFieldHeader_(field, jspb.BinaryConstants.WireType.VARINT);
374 * Writes a varint field to the buffer without range checking.
375 * @param {number} field The field number.
379 jspb.BinaryWriter.prototype.writeSignedVarint32_ = function(field, value) {
381 this.writeFieldHeader_(field, jspb.BinaryConstants.WireType.VARINT);
387 * Writes a varint field to the buffer without range checking.
388 * @param {number} field The field number.
392 jspb.BinaryWriter.prototype.writeUnsignedVarint64_ = function(field, value) {
394 this.writeFieldHeader_(field, jspb.BinaryConstants.WireType.VARINT);
400 * Writes a varint field to the buffer without range checking.
401 * @param {number} field The field number.
405 jspb.BinaryWriter.prototype.writeSignedVarint64_ = function(field, value) {
407 this.writeFieldHeader_(field, jspb.BinaryConstants.WireType.VARINT);
413 * Writes a zigzag varint field to the buffer without range checking.
414 * @param {number} field The field number.
418 jspb.BinaryWriter.prototype.writeZigzagVarint32_ = function(field, value) {
420 this.writeFieldHeader_(field, jspb.BinaryConstants.WireType.VARINT);
426 * Writes a zigzag varint field to the buffer without range checking.
427 * @param {number} field The field number.
431 jspb.BinaryWriter.prototype.writeZigzagVarint64_ = function(field, value) {
433 this.writeFieldHeader_(field, jspb.BinaryConstants.WireType.VARINT);
439 * Writes a zigzag varint field to the buffer without range checking.
440 * @param {number} field The field number.
445 field, value) {
447 this.writeFieldHeader_(field, jspb.BinaryConstants.WireType.VARINT);
453 * Writes a zigzag varint field to the buffer without range checking.
454 * @param {number} field The field number.
458 jspb.BinaryWriter.prototype.writeZigzagVarintHash64_ = function(field, value) {
460 this.writeFieldHeader_(field, jspb.BinaryConstants.WireType.VARINT);
466 * Writes an int32 field to the buffer. Numbers outside the range [-2^31,2^31)
468 * @param {number} field The field number.
471 jspb.BinaryWriter.prototype.writeInt32 = function(field, value) {
475 this.writeSignedVarint32_(field, value);
480 * Writes an int32 field represented as a string to the buffer. Numbers outside
482 * @param {number} field The field number.
485 jspb.BinaryWriter.prototype.writeInt32String = function(field, value) {
490 this.writeSignedVarint32_(field, intValue);
495 * Writes an int64 field to the buffer. Numbers outside the range [-2^63,2^63)
497 * @param {number} field The field number.
500 jspb.BinaryWriter.prototype.writeInt64 = function(field, value) {
504 this.writeSignedVarint64_(field, value);
509 * Writes a int64 field (with value as a string) to the buffer.
510 * @param {number} field The field number.
513 jspb.BinaryWriter.prototype.writeInt64String = function(field, value) {
516 this.writeFieldHeader_(field, jspb.BinaryConstants.WireType.VARINT);
522 * Writes a uint32 field to the buffer. Numbers outside the range [0,2^32)
524 * @param {number} field The field number.
527 jspb.BinaryWriter.prototype.writeUint32 = function(field, value) {
531 this.writeUnsignedVarint32_(field, value);
536 * Writes a uint32 field represented as a string to the buffer. Numbers outside
538 * @param {number} field The field number.
541 jspb.BinaryWriter.prototype.writeUint32String = function(field, value) {
546 this.writeUnsignedVarint32_(field, intValue);
551 * Writes a uint64 field to the buffer. Numbers outside the range [0,2^64)
553 * @param {number} field The field number.
556 jspb.BinaryWriter.prototype.writeUint64 = function(field, value) {
560 this.writeUnsignedVarint64_(field, value);
565 * Writes a uint64 field (with value as a string) to the buffer.
566 * @param {number} field The field number.
569 jspb.BinaryWriter.prototype.writeUint64String = function(field, value) {
572 this.writeFieldHeader_(field, jspb.BinaryConstants.WireType.VARINT);
578 * Writes an sint32 field to the buffer. Numbers outside the range [-2^31,2^31)
580 * @param {number} field The field number.
583 jspb.BinaryWriter.prototype.writeSint32 = function(field, value) {
587 this.writeZigzagVarint32_(field, value);
592 * Writes an sint64 field to the buffer. Numbers outside the range [-2^63,2^63)
594 * @param {number} field The field number.
597 jspb.BinaryWriter.prototype.writeSint64 = function(field, value) {
601 this.writeZigzagVarint64_(field, value);
606 * Writes an sint64 field to the buffer from a hash64 encoded value. Numbers
608 * @param {number} field The field number.
611 jspb.BinaryWriter.prototype.writeSintHash64 = function(field, value) {
613 this.writeZigzagVarintHash64_(field, value);
618 * Writes an sint64 field to the buffer. Numbers outside the range [-2^63,2^63)
620 * @param {number} field The field number.
623 jspb.BinaryWriter.prototype.writeSint64String = function(field, value) {
625 this.writeZigzagVarint64String_(field, value);
630 * Writes a fixed32 field to the buffer. Numbers outside the range [0,2^32)
632 * @param {number} field The field number.
635 jspb.BinaryWriter.prototype.writeFixed32 = function(field, value) {
639 this.writeFieldHeader_(field, jspb.BinaryConstants.WireType.FIXED32);
645 * Writes a fixed64 field to the buffer. Numbers outside the range [0,2^64)
647 * @param {number} field The field number.
650 jspb.BinaryWriter.prototype.writeFixed64 = function(field, value) {
654 this.writeFieldHeader_(field, jspb.BinaryConstants.WireType.FIXED64);
660 * Writes a fixed64 field (with value as a string) to the buffer.
661 * @param {number} field The field number.
664 jspb.BinaryWriter.prototype.writeFixed64String = function(field, value) {
667 this.writeFieldHeader_(field, jspb.BinaryConstants.WireType.FIXED64);
673 * Writes a sfixed32 field to the buffer. Numbers outside the range
675 * @param {number} field The field number.
678 jspb.BinaryWriter.prototype.writeSfixed32 = function(field, value) {
682 this.writeFieldHeader_(field, jspb.BinaryConstants.WireType.FIXED32);
688 * Writes a sfixed64 field to the buffer. Numbers outside the range
690 * @param {number} field The field number.
693 jspb.BinaryWriter.prototype.writeSfixed64 = function(field, value) {
697 this.writeFieldHeader_(field, jspb.BinaryConstants.WireType.FIXED64);
703 * Writes a sfixed64 string field to the buffer. Numbers outside the range
705 * @param {number} field The field number.
708 jspb.BinaryWriter.prototype.writeSfixed64String = function(field, value) {
711 this.writeFieldHeader_(field, jspb.BinaryConstants.WireType.FIXED64);
717 * Writes a single-precision floating point field to the buffer. Numbers
719 * @param {number} field The field number.
722 jspb.BinaryWriter.prototype.writeFloat = function(field, value) {
724 this.writeFieldHeader_(field, jspb.BinaryConstants.WireType.FIXED32);
730 * Writes a double-precision floating point field to the buffer. As this is the
732 * @param {number} field The field number.
735 jspb.BinaryWriter.prototype.writeDouble = function(field, value) {
737 this.writeFieldHeader_(field, jspb.BinaryConstants.WireType.FIXED64);
743 * Writes a boolean field to the buffer. We allow numbers as input
746 * @param {number} field The field number.
749 jspb.BinaryWriter.prototype.writeBool = function(field, value) {
752 this.writeFieldHeader_(field, jspb.BinaryConstants.WireType.VARINT);
758 * Writes an enum field to the buffer.
759 * @param {number} field The field number.
762 jspb.BinaryWriter.prototype.writeEnum = function(field, value) {
766 this.writeFieldHeader_(field, jspb.BinaryConstants.WireType.VARINT);
772 * Writes a string field to the buffer.
773 * @param {number} field The field number.
776 jspb.BinaryWriter.prototype.writeString = function(field, value) {
778 var bookmark = this.beginDelimited_(field);
785 * Writes an arbitrary byte field to the buffer. Note - to match the behavior
787 * @param {number} field The field number.
790 jspb.BinaryWriter.prototype.writeBytes = function(field, value) {
793 this.writeFieldHeader_(field, jspb.BinaryConstants.WireType.DELIMITED);
801 * @param {number} field The field number.
816 field, value, writerCallback) {
818 var bookmark = this.beginDelimited_(field);
826 * @param {number} field The field number for the extension.
842 field, value, writerCallback) {
848 this.encoder_.writeSignedVarint32(field);
859 * @param {number} field The field number.
875 field, value, writerCallback) {
877 this.writeFieldHeader_(field, jspb.BinaryConstants.WireType.START_GROUP);
879 this.writeFieldHeader_(field, jspb.BinaryConstants.WireType.END_GROUP);
884 * Writes a 64-bit hash string field (8 characters @ 8 bits of data each) to
886 * @param {number} field The field number.
889 jspb.BinaryWriter.prototype.writeFixedHash64 = function(field, value) {
892 this.writeFieldHeader_(field, jspb.BinaryConstants.WireType.FIXED64);
898 * Writes a 64-bit hash string field (8 characters @ 8 bits of data each) to
900 * @param {number} field The field number.
903 jspb.BinaryWriter.prototype.writeVarintHash64 = function(field, value) {
906 this.writeFieldHeader_(field, jspb.BinaryConstants.WireType.VARINT);
912 * Writes a 64-bit field to the buffer as a fixed64.
913 * @param {number} field The field number.
918 field, lowBits, highBits) {
919 this.writeFieldHeader_(field, jspb.BinaryConstants.WireType.FIXED64);
925 * Writes a 64-bit field to the buffer as a varint.
926 * @param {number} field The field number.
931 field, lowBits, highBits) {
932 this.writeFieldHeader_(field, jspb.BinaryConstants.WireType.VARINT);
938 * Writes a 64-bit field to the buffer as a zigzag encoded varint.
939 * @param {number} field The field number.
944 field, lowBits, highBits) {
945 this.writeFieldHeader_(field, jspb.BinaryConstants.WireType.VARINT);
954 * Writes an array of numbers to the buffer as a repeated 32-bit int field.
955 * @param {number} field The field number.
958 jspb.BinaryWriter.prototype.writeRepeatedInt32 = function(field, value) {
961 this.writeSignedVarint32_(field, value[i]);
968 * 32-bit int field.
969 * @param {number} field The field number.
972 jspb.BinaryWriter.prototype.writeRepeatedInt32String = function(field, value) {
975 this.writeInt32String(field, value[i]);
981 * Writes an array of numbers to the buffer as a repeated 64-bit int field.
982 * @param {number} field The field number.
985 jspb.BinaryWriter.prototype.writeRepeatedInt64 = function(field, value) {
988 this.writeSignedVarint64_(field, value[i]);
995 * @param {number} field The field number.
1002 field, value, lo, hi) {
1005 this.writeSplitFixed64(field, lo(value[i]), hi(value[i]));
1012 * @param {number} field The field number.
1019 field, value, lo, hi) {
1022 this.writeSplitVarint64(field, lo(value[i]), hi(value[i]));
1029 * @param {number} field The field number.
1036 field, value, lo, hi) {
1039 this.writeSplitZigzagVarint64(field, lo(value[i]), hi(value[i]));
1046 * 64-bit int field.
1047 * @param {number} field The field number.
1050 jspb.BinaryWriter.prototype.writeRepeatedInt64String = function(field, value) {
1053 this.writeInt64String(field, value[i]);
1060 * field.
1061 * @param {number} field The field number.
1064 jspb.BinaryWriter.prototype.writeRepeatedUint32 = function(field, value) {
1067 this.writeUnsignedVarint32_(field, value[i]);
1074 * unsigned 32-bit int field.
1075 * @param {number} field The field number.
1078 jspb.BinaryWriter.prototype.writeRepeatedUint32String = function(field, value) {
1081 this.writeUint32String(field, value[i]);
1088 * field.
1089 * @param {number} field The field number.
1092 jspb.BinaryWriter.prototype.writeRepeatedUint64 = function(field, value) {
1095 this.writeUnsignedVarint64_(field, value[i]);
1102 * unsigned 64-bit int field.
1103 * @param {number} field The field number.
1106 jspb.BinaryWriter.prototype.writeRepeatedUint64String = function(field, value) {
1109 this.writeUint64String(field, value[i]);
1115 * Writes an array numbers to the buffer as a repeated signed 32-bit int field.
1116 * @param {number} field The field number.
1119 jspb.BinaryWriter.prototype.writeRepeatedSint32 = function(field, value) {
1122 this.writeZigzagVarint32_(field, value[i]);
1128 * Writes an array numbers to the buffer as a repeated signed 64-bit int field.
1129 * @param {number} field The field number.
1132 jspb.BinaryWriter.prototype.writeRepeatedSint64 = function(field, value) {
1135 this.writeZigzagVarint64_(field, value[i]);
1141 * Writes an array numbers to the buffer as a repeated signed 64-bit int field.
1142 * @param {number} field The field number.
1145 jspb.BinaryWriter.prototype.writeRepeatedSint64String = function(field, value) {
1148 this.writeZigzagVarint64String_(field, value[i]);
1155 * int field.
1156 * @param {number} field The field number.
1159 jspb.BinaryWriter.prototype.writeRepeatedSintHash64 = function(field, value) {
1162 this.writeZigzagVarintHash64_(field, value[i]);
1168 * Writes an array of numbers to the buffer as a repeated fixed32 field. This
1170 * @param {number} field The field number.
1173 jspb.BinaryWriter.prototype.writeRepeatedFixed32 = function(field, value) {
1176 this.writeFixed32(field, value[i]);
1182 * Writes an array of numbers to the buffer as a repeated fixed64 field. This
1184 * @param {number} field The field number.
1187 jspb.BinaryWriter.prototype.writeRepeatedFixed64 = function(field, value) {
1190 this.writeFixed64(field, value[i]);
1196 * Writes an array of numbers to the buffer as a repeated fixed64 field. This
1198 * @param {number} field The field number.
1202 field, value) {
1205 this.writeFixed64String(field, value[i]);
1211 * Writes an array of numbers to the buffer as a repeated sfixed32 field.
1212 * @param {number} field The field number.
1215 jspb.BinaryWriter.prototype.writeRepeatedSfixed32 = function(field, value) {
1218 this.writeSfixed32(field, value[i]);
1224 * Writes an array of numbers to the buffer as a repeated sfixed64 field.
1225 * @param {number} field The field number.
1228 jspb.BinaryWriter.prototype.writeRepeatedSfixed64 = function(field, value) {
1231 this.writeSfixed64(field, value[i]);
1238 * field.
1239 * @param {number} field The field number.
1242 jspb.BinaryWriter.prototype.writeRepeatedSfixed64String = function(field, value) {
1245 this.writeSfixed64String(field, value[i]);
1251 * Writes an array of numbers to the buffer as a repeated float field.
1252 * @param {number} field The field number.
1255 jspb.BinaryWriter.prototype.writeRepeatedFloat = function(field, value) {
1258 this.writeFloat(field, value[i]);
1264 * Writes an array of numbers to the buffer as a repeated double field.
1265 * @param {number} field The field number.
1268 jspb.BinaryWriter.prototype.writeRepeatedDouble = function(field, value) {
1271 this.writeDouble(field, value[i]);
1277 * Writes an array of booleans to the buffer as a repeated bool field.
1278 * @param {number} field The field number.
1281 jspb.BinaryWriter.prototype.writeRepeatedBool = function(field, value) {
1284 this.writeBool(field, value[i]);
1290 * Writes an array of enums to the buffer as a repeated enum field.
1291 * @param {number} field The field number.
1294 jspb.BinaryWriter.prototype.writeRepeatedEnum = function(field, value) {
1297 this.writeEnum(field, value[i]);
1303 * Writes an array of strings to the buffer as a repeated string field.
1304 * @param {number} field The field number.
1307 jspb.BinaryWriter.prototype.writeRepeatedString = function(field, value) {
1310 this.writeString(field, value[i]);
1317 * @param {number} field The field number.
1321 jspb.BinaryWriter.prototype.writeRepeatedBytes = function(field, value) {
1324 this.writeBytes(field, value[i]);
1332 * @param {number} field The field number.
1339 field, value, writerCallback) {
1342 var bookmark = this.beginDelimited_(field);
1352 * @param {number} field The field number.
1359 field, value, writerCallback) {
1362 this.writeFieldHeader_(field, jspb.BinaryConstants.WireType.START_GROUP);
1364 this.writeFieldHeader_(field, jspb.BinaryConstants.WireType.END_GROUP);
1370 * Writes a 64-bit hash string field (8 characters @ 8 bits of data each) to
1372 * @param {number} field The field number.
1376 function(field, value) {
1379 this.writeFixedHash64(field, value[i]);
1385 * Writes a repeated 64-bit hash string field (8 characters @ 8 bits of data
1387 * @param {number} field The field number.
1391 function(field, value) {
1394 this.writeVarintHash64(field, value[i]);
1400 * Writes an array of numbers to the buffer as a packed 32-bit int field.
1401 * @param {number} field The field number.
1404 jspb.BinaryWriter.prototype.writePackedInt32 = function(field, value) {
1406 var bookmark = this.beginDelimited_(field);
1416 * 32-bit int field.
1417 * @param {number} field
1420 jspb.BinaryWriter.prototype.writePackedInt32String = function(field, value) {
1422 var bookmark = this.beginDelimited_(field);
1431 * Writes an array of numbers to the buffer as a packed 64-bit int field.
1432 * @param {number} field The field number.
1435 jspb.BinaryWriter.prototype.writePackedInt64 = function(field, value) {
1437 var bookmark = this.beginDelimited_(field);
1447 * @param {number} field The field number.
1454 field, value, lo, hi) {
1456 var bookmark = this.beginDelimited_(field);
1466 * @param {number} field The field number.
1473 field, value, lo, hi) {
1475 var bookmark = this.beginDelimited_(field);
1485 * @param {number} field The field number.
1492 field, value, lo, hi) {
1494 var bookmark = this.beginDelimited_(field);
1508 * 64-bit int field.
1509 * @param {number} field
1512 jspb.BinaryWriter.prototype.writePackedInt64String = function(field, value) {
1514 var bookmark = this.beginDelimited_(field);
1524 * Writes an array numbers to the buffer as a packed unsigned 32-bit int field.
1525 * @param {number} field The field number.
1528 jspb.BinaryWriter.prototype.writePackedUint32 = function(field, value) {
1530 var bookmark = this.beginDelimited_(field);
1540 * unsigned 32-bit int field.
1541 * @param {number} field
1545 function(field, value) {
1547 var bookmark = this.beginDelimited_(field);
1556 * Writes an array numbers to the buffer as a packed unsigned 64-bit int field.
1557 * @param {number} field The field number.
1560 jspb.BinaryWriter.prototype.writePackedUint64 = function(field, value) {
1562 var bookmark = this.beginDelimited_(field);
1572 * unsigned 64-bit int field.
1573 * @param {number} field
1577 function(field, value) {
1579 var bookmark = this.beginDelimited_(field);
1589 * Writes an array numbers to the buffer as a packed signed 32-bit int field.
1590 * @param {number} field The field number.
1593 jspb.BinaryWriter.prototype.writePackedSint32 = function(field, value) {
1595 var bookmark = this.beginDelimited_(field);
1604 * Writes an array of numbers to the buffer as a packed signed 64-bit int field.
1605 * @param {number} field The field number.
1608 jspb.BinaryWriter.prototype.writePackedSint64 = function(field, value) {
1610 var bookmark = this.beginDelimited_(field);
1620 * int field.
1621 * @param {number} field The field number.
1624 jspb.BinaryWriter.prototype.writePackedSint64String = function(field, value) {
1626 var bookmark = this.beginDelimited_(field);
1637 * int field.
1638 * @param {number} field The field number.
1641 jspb.BinaryWriter.prototype.writePackedSintHash64 = function(field, value) {
1643 var bookmark = this.beginDelimited_(field);
1652 * Writes an array of numbers to the buffer as a packed fixed32 field.
1653 * @param {number} field The field number.
1656 jspb.BinaryWriter.prototype.writePackedFixed32 = function(field, value) {
1658 this.writeFieldHeader_(field, jspb.BinaryConstants.WireType.DELIMITED);
1667 * Writes an array of numbers to the buffer as a packed fixed64 field.
1668 * @param {number} field The field number.
1671 jspb.BinaryWriter.prototype.writePackedFixed64 = function(field, value) {
1673 this.writeFieldHeader_(field, jspb.BinaryConstants.WireType.DELIMITED);
1683 * fixed64 field.
1684 * @param {number} field The field number.
1687 jspb.BinaryWriter.prototype.writePackedFixed64String = function(field, value) {
1689 this.writeFieldHeader_(field, jspb.BinaryConstants.WireType.DELIMITED);
1699 * Writes an array of numbers to the buffer as a packed sfixed32 field.
1700 * @param {number} field The field number.
1703 jspb.BinaryWriter.prototype.writePackedSfixed32 = function(field, value) {
1705 this.writeFieldHeader_(field, jspb.BinaryConstants.WireType.DELIMITED);
1714 * Writes an array of numbers to the buffer as a packed sfixed64 field.
1715 * @param {number} field The field number.
1718 jspb.BinaryWriter.prototype.writePackedSfixed64 = function(field, value) {
1720 this.writeFieldHeader_(field, jspb.BinaryConstants.WireType.DELIMITED);
1729 * Writes an array of numbers to the buffer as a packed sfixed64 field.
1730 * @param {number} field The field number.
1733 jspb.BinaryWriter.prototype.writePackedSfixed64String = function(field, value) {
1735 this.writeFieldHeader_(field, jspb.BinaryConstants.WireType.DELIMITED);
1744 * Writes an array of numbers to the buffer as a packed float field.
1745 * @param {number} field The field number.
1748 jspb.BinaryWriter.prototype.writePackedFloat = function(field, value) {
1750 this.writeFieldHeader_(field, jspb.BinaryConstants.WireType.DELIMITED);
1759 * Writes an array of numbers to the buffer as a packed double field.
1760 * @param {number} field The field number.
1763 jspb.BinaryWriter.prototype.writePackedDouble = function(field, value) {
1765 this.writeFieldHeader_(field, jspb.BinaryConstants.WireType.DELIMITED);
1774 * Writes an array of booleans to the buffer as a packed bool field.
1775 * @param {number} field The field number.
1778 jspb.BinaryWriter.prototype.writePackedBool = function(field, value) {
1780 this.writeFieldHeader_(field, jspb.BinaryConstants.WireType.DELIMITED);
1789 * Writes an array of enums to the buffer as a packed enum field.
1790 * @param {number} field The field number.
1793 jspb.BinaryWriter.prototype.writePackedEnum = function(field, value) {
1795 var bookmark = this.beginDelimited_(field);
1804 * Writes a 64-bit hash string field (8 characters @ 8 bits of data each) to
1806 * @param {number} field The field number.
1809 jspb.BinaryWriter.prototype.writePackedFixedHash64 = function(field, value) {
1811 this.writeFieldHeader_(field, jspb.BinaryConstants.WireType.DELIMITED);
1820 * Writes a 64-bit hash string field (8 characters @ 8 bits of data each) to
1822 * @param {number} field The field number.
1825 jspb.BinaryWriter.prototype.writePackedVarintHash64 = function(field, value) {
1827 var bookmark = this.beginDelimited_(field);