• Home
  • Raw
  • Download

Lines Matching +full:binary +full:- +full:extensions

2 // Protocol Buffers - Google's data interchange format
4 // https://developers.google.com/protocol-buffers/
6 // Redistribution and use in source and binary forms, with or without
12 // * Redistributions in binary form must reproduce the above
41 … /// Provides extensions to messages while parsing. This API is experimental and subject to change.
58 private IDictionary<ObjectIntPair<Type>, Extension> extensions; field in Google.Protobuf.ExtensionRegistry
65 extensions = new Dictionary<ObjectIntPair<Type>, Extension>(); in ExtensionRegistry()
70 extensions = collection.ToDictionary(k => k.Key, v => v.Value); in ExtensionRegistry()
74 /// Gets the total number of extensions in this extension registry
76 public int Count => extensions.Count;
85 …return extensions.TryGetValue(new ObjectIntPair<Type>(target, WireFormat.GetTagFieldNumber(lastTag… in ContainsInputField()
95extensions.Add(new ObjectIntPair<Type>(extension.TargetType, extension.FieldNumber), extension); in Add()
99 /// Adds the specified extensions to the registry
101 public void AddRange(IEnumerable<Extension> extensions) in AddRange() argument
103 ProtoPreconditions.CheckNotNull(extensions, nameof(extensions)); in AddRange()
105 foreach (var extension in extensions) in AddRange()
116 extensions.Clear(); in Clear()
126 … return extensions.ContainsKey(new ObjectIntPair<Type>(item.TargetType, item.FieldNumber)); in Contains()
141 if (array.Length - arrayIndex < Count) in CopyTo()
149extensions.Add(new ObjectIntPair<Type>(extension.TargetType, extension.FieldNumber), extension); in CopyTo()
156 /// <returns>Returns an enumerator for the extensions in this registry</returns>
159 return extensions.Values.GetEnumerator(); in GetEnumerator()
171 return extensions.Remove(new ObjectIntPair<Type>(item.TargetType, item.FieldNumber)); in Remove()
181 return new ExtensionRegistry(extensions); in Clone()