Lines Matching refs:CodedOutputStream
60 public sealed partial class CodedOutputStream : IDisposable
75 /// Creates a new CodedOutputStream that writes directly to the given
79 public CodedOutputStream(byte[] flatArray) : this(flatArray, 0, flatArray.Length)
84 /// Creates a new CodedOutputStream that writes directly to the given
88 private CodedOutputStream(byte[] buffer, int offset, int length)
98 private CodedOutputStream(Stream output, byte[] buffer, bool leaveOpen)
109 /// Creates a new <see cref="CodedOutputStream" /> which write to the given stream, and disposes of that
110 /// stream when the returned <c>CodedOutputStream</c> is disposed.
112 /// <param name="output">The stream to write to. It will be disposed when the returned <c>CodedOutputStream is disposed.</c></param>
113 public CodedOutputStream(Stream output) : this(output, DefaultBufferSize, false)
118 /// Creates a new CodedOutputStream which write to the given stream and uses
121 /// <param name="output">The stream to write to. It will be disposed when the returned <c>CodedOutputStream is disposed.</c></param>
123 public CodedOutputStream(Stream output, int bufferSize) : this(output, new byte[bufferSize], false)
128 /// Creates a new CodedOutputStream which write to the given stream.
131 /// <param name="leaveOpen">If <c>true</c>, <paramref name="output"/> is left open when the returned <c>CodedOutputStream</c> is disposed;
133 public CodedOutputStream(Stream output, bool leaveOpen) : this(output, DefaultBufferSize, leaveOpen)
138 /// Creates a new CodedOutputStream which write to the given stream and uses
143 /// <param name="leaveOpen">If <c>true</c>, <paramref name="output"/> is left open when the returned <c>CodedOutputStream</c> is disposed;
145 public CodedOutputStream(Stream output, int bufferSize, bool leaveOpen) : this(output, new byte[bufferSize], leaveOpen)
540 /// Indicates that a CodedOutputStream wrapping a flat byte array
546 : base("CodedOutputStream was writing to a flat byte array and ran out of space.")
587 /// a CodedOutputStream. Calling CheckNoSpaceLeft after writing verifies that