parameters: (field_number, is_repeated, is_packed)
docstring: Returns a sizer for a bytes field.
docstring_summary: Returns a sizer for a bytes field.
docstring_tokens: Returns a sizer for a bytes field .
function: def BytesSizer(field_number, is_repeated, is_packed):
    """Returns a sizer for a bytes field."""
  
    tag_size = _TagSize(field_number)
    local_VarintSize = _VarintSize
    local_len = len
    assert not is_packed
    if is_repeated:
      def RepeatedFieldSize(value):
        result = tag_size * len(value)
        for element in value:
          l = local_len(element)
          result += local_VarintSize(l) + l
        return result
      return RepeatedFieldSize
    else:
      def FieldSize(value):
        l = local_len(value)
        return tag_size + local_VarintSize(l) + l
      return FieldSize
function_tokens: def BytesSizer ( field_number , is_repeated , is_packed ) : tag_size = _TagSize ( field_number ) local_VarintSize = _VarintSize local_len = len assert not is_packed if is_repeated : def RepeatedFieldSize ( value ) : result = tag_size * len ( value ) for element in value : l = local_len ( element ) result += local_VarintSize ( l ) + l return result return RepeatedFieldSize else : def FieldSize ( value ) : l = local_len ( value ) return tag_size + local_VarintSize ( l ) + l return FieldSize