Lines Matching refs:CodedInputStream

58     public sealed class CodedInputStream : IDisposable

92 /// Creates a new CodedInputStream reading data from the given byte array.
94 public CodedInputStream(byte[] buffer) : this(null, ProtoPreconditions.CheckNotNull(buffer, "buffer"), 0, buffer.Length, true)
99 /// Creates a new <see cref="CodedInputStream"/> that reads from the given byte array slice.
101 public CodedInputStream(byte[] buffer, int offset, int length)
115 /// Creates a new <see cref="CodedInputStream"/> reading data from the given stream, which will be disposed
119 public CodedInputStream(Stream input) : this(input, false)
124 /// Creates a new <see cref="CodedInputStream"/> reading data from the given stream.
128 /// <c cref="CodedInputStream"/> is disposed; <c>false</c> to dispose of the given stream when the
130 public CodedInputStream(Stream input, bool leaveOpen)
136 /// Creates a new CodedInputStream reading data from the given
139 internal CodedInputStream(Stream input, byte[] buffer, int bufferPos, int bufferSize, bool leaveOpen)
154 /// Creates a new CodedInputStream reading data from the given
161 internal CodedInputStream(Stream input, byte[] buffer, int bufferPos, int bufferSize, int sizeLimit, int recursionLimit, bool leaveOpen)
178 /// Creates a <see cref="CodedInputStream"/> with the specified size and recursion limits, reading
189 /// <returns>A <c>CodedInputStream</c> reading from <paramref name="input"/> with the specified size
191 public static CodedInputStream CreateWithLimits(Stream input, int sizeLimit, int recursionLimit)
194 return new CodedInputStream(input, new byte[BufferSize], 0, 0, sizeLimit, recursionLimit, false);
271 /// As there is no flushing to perform here, disposing of a <see cref="CodedInputStream"/> which
314 /// the data in this CodedInputStream; it may be the end of the logical stream
435 // we will need to switch back again to CodedInputStream-based parsing (which involves copying and storing the state) to be able to
436 // invoke the legacy MergeFrom(CodedInputStream) method.
567 /// stream in a CodedInputStream and used ReadRawVarint32(Stream)
569 /// CodedInputStream buffers its input.
683 /// NOTE: this method needs to be public because it's invoked by the generated code - e.g. msg.MergeFrom(CodedInputStream input) method