Lines Matching refs:field
802 * Counts the number of contiguous varint fields with the given field number in
807 * @param {number} field The field number to count.
810 jspb.utils.countVarintFields = function(buffer, start, end, field) {
813 var tag = field * 8 + jspb.BinaryConstants.WireType.VARINT;
816 // Single-byte field tag, we can use a slightly quicker count.
818 // Skip the field tag, or exit if we find a non-matching tag.
821 // Field tag matches, we've found a valid field.
832 // Skip the field tag, or exit if we find a non-matching tag.
841 // Field tag matches, we've found a valid field.
862 * @param {number} stride The number of bytes to skip per field.
872 // Single-byte field tag, we can use a slightly quicker count.
874 // Skip the field tag, or exit if we find a non-matching tag.
877 // Field tag matches, we've found a valid field.
885 // Skip the field tag, or exit if we find a non-matching tag.
893 // Field tag matches, we've found a valid field.
905 * Counts the number of contiguous fixed32 fields with the given field number
910 * @param {number} field The field number to count.
913 jspb.utils.countFixed32Fields = function(buffer, start, end, field) {
914 var tag = field * 8 + jspb.BinaryConstants.WireType.FIXED32;
920 * Counts the number of contiguous fixed64 fields with the given field number
925 * @param {number} field The field number to count
928 jspb.utils.countFixed64Fields = function(buffer, start, end, field) {
929 var tag = field * 8 + jspb.BinaryConstants.WireType.FIXED64;
935 * Counts the number of contiguous delimited fields with the given field number
940 * @param {number} field The field number to count.
943 jspb.utils.countDelimitedFields = function(buffer, start, end, field) {
946 var tag = field * 8 + jspb.BinaryConstants.WireType.DELIMITED;
949 // Skip the field tag, or exit if we find a non-matching tag.
957 // Field tag matches, we've found a valid field.