Lines Matching refs:buffer

50     /// levels of protocol buffer format.

69 private readonly byte[] buffer;
72 /// The stream to read further input from, or null if the byte array buffer was provided
94 public CodedInputStream(byte[] buffer) : this(null, ProtoPreconditions.CheckNotNull(buffer, "buffer"), 0, buffer.Length, true)
101 public CodedInputStream(byte[] buffer, int offset, int length)
102 : this(null, ProtoPreconditions.CheckNotNull(buffer, "buffer"), offset, offset + length, true)
104 if (offset < 0 || offset > buffer.Length)
106 throw new ArgumentOutOfRangeException("offset", "Offset must be within the buffer");
108 if (length < 0 || offset + length > buffer.Length)
110 throw new ArgumentOutOfRangeException("length", "Length must be non-negative and within the buffer");
137 /// stream and buffer, using the default limits.
139 internal CodedInputStream(Stream input, byte[] buffer, int bufferPos, int bufferSize, bool leaveOpen)
142 this.buffer = buffer;
155 /// stream and buffer, using the specified limits.
161 internal CodedInputStream(Stream input, byte[] buffer, int bufferPos, int bufferSize, int sizeLimit, int recursionLimit, bool leaveOpen)
162 : this(input, buffer, bufferPos, bufferSize, leaveOpen)
198 /// Returns the current position in the input stream, or the position in the input buffer
261 internal byte[] InternalBuffer => buffer;
305 var span = new ReadOnlySpan<byte>(buffer);
320 var span = new ReadOnlySpan<byte>(buffer);
339 var span = new ReadOnlySpan<byte>(buffer);
348 var span = new ReadOnlySpan<byte>(buffer);
357 var span = new ReadOnlySpan<byte>(buffer);
366 var span = new ReadOnlySpan<byte>(buffer);
423 var span = new ReadOnlySpan<byte>(buffer);
438 var span = new ReadOnlySpan<byte>(buffer);
471 var span = new ReadOnlySpan<byte>(buffer);
533 var span = new ReadOnlySpan<byte>(buffer);
544 var span = new ReadOnlySpan<byte>(buffer);
554 /// This method is optimised for the case where we've got lots of data in the buffer.
555 /// That means we can check the size just once, then just read directly from the buffer
556 /// without constant rechecking of the buffer length.
560 var span = new ReadOnlySpan<byte>(buffer);
583 var span = new ReadOnlySpan<byte>(buffer);
592 var span = new ReadOnlySpan<byte>(buffer);
601 var span = new ReadOnlySpan<byte>(buffer);
606 #region Internal reading and buffer management
648 var span = new ReadOnlySpan<byte>(buffer);
654 /// Called when buffer is empty to read more bytes from the
656 /// either there will be at least one byte in the buffer when it returns
664 var span = new ReadOnlySpan<byte>(buffer);
676 var span = new ReadOnlySpan<byte>(buffer);