1 #region Copyright notice and license 2 // Protocol Buffers - Google's data interchange format 3 // Copyright 2008 Google Inc. All rights reserved. 4 // 5 // Use of this source code is governed by a BSD-style 6 // license that can be found in the LICENSE file or at 7 // https://developers.google.com/open-source/licenses/bsd 8 #endregion 9 10 namespace Google.Protobuf 11 { 12 /// <summary> 13 /// Interface for a Protocol Buffers message, supporting 14 /// parsing from <see cref="ParseContext"/> and writing to <see cref="WriteContext"/>. 15 /// </summary> 16 public interface IBufferMessage : IMessage 17 { 18 /// <summary> 19 /// Internal implementation of merging data from given parse context into this message. 20 /// Users should never invoke this method directly. 21 /// </summary> InternalMergeFrom(ref ParseContext ctx)22 void InternalMergeFrom(ref ParseContext ctx); 23 24 /// <summary> 25 /// Internal implementation of writing this message to a given write context. 26 /// Users should never invoke this method directly. 27 /// </summary> InternalWriteTo(ref WriteContext ctx)28 void InternalWriteTo(ref WriteContext ctx); 29 } 30 } 31