89 writes to reader
Microsoft.AspNetCore.Components.Server (89)
src\aspnetcore\src\submodules\MessagePack-CSharp\src\MessagePack.UnityClient\Assets\Scripts\MessagePack\MessagePackReader.cs (33)
53this.reader = new SequenceReader<byte>(memory); 64this.reader = new SequenceReader<byte>(readOnlySequence); 399if (!this.reader.TryReadBigEndian(out short shortValue)) 407if (!this.reader.TryReadBigEndian(out int intValue)) 476if (!this.reader.TryReadBigEndian(out short shortValue)) 484if (!this.reader.TryReadBigEndian(out int intValue)) 553ThrowInsufficientBufferUnless(this.reader.TryReadBigEndian(out float floatValue)); 556ThrowInsufficientBufferUnless(this.reader.TryReadBigEndian(out double doubleValue)); 559ThrowInsufficientBufferUnless(this.reader.TryRead(out sbyte sbyteValue)); 562ThrowInsufficientBufferUnless(this.reader.TryReadBigEndian(out short shortValue)); 565ThrowInsufficientBufferUnless(this.reader.TryReadBigEndian(out int intValue)); 568ThrowInsufficientBufferUnless(this.reader.TryReadBigEndian(out long longValue)); 574ThrowInsufficientBufferUnless(this.reader.TryReadBigEndian(out ushort ushortValue)); 577ThrowInsufficientBufferUnless(this.reader.TryReadBigEndian(out uint uintValue)); 580ThrowInsufficientBufferUnless(this.reader.TryReadBigEndian(out ulong ulongValue)); 619ThrowInsufficientBufferUnless(this.reader.TryReadBigEndian(out double doubleValue)); 622ThrowInsufficientBufferUnless(this.reader.TryReadBigEndian(out float floatValue)); 628ThrowInsufficientBufferUnless(this.reader.TryReadBigEndian(out short shortValue)); 631ThrowInsufficientBufferUnless(this.reader.TryReadBigEndian(out int intValue)); 634ThrowInsufficientBufferUnless(this.reader.TryReadBigEndian(out long longValue)); 640ThrowInsufficientBufferUnless(this.reader.TryReadBigEndian(out shortValue)); 643ThrowInsufficientBufferUnless(this.reader.TryReadBigEndian(out intValue)); 646ThrowInsufficientBufferUnless(this.reader.TryReadBigEndian(out longValue)); 691ThrowInsufficientBufferUnless(this.reader.TryReadBigEndian(out int intValue)); 694ThrowInsufficientBufferUnless(this.reader.TryReadBigEndian(out long longValue)); 700ThrowInsufficientBufferUnless(this.reader.TryReadBigEndian(out intValue)); 702ThrowInsufficientBufferUnless(this.reader.TryReadBigEndian(out longValue)); 919if (!this.reader.TryReadBigEndian(out short shortLength)) 927if (!this.reader.TryReadBigEndian(out int intLength)) 1054if (this.reader.TryReadBigEndian(out short shortLength)) 1063if (this.reader.TryReadBigEndian(out length)) 1131if (this.reader.TryReadBigEndian(out short shortValue)) 1139if (this.reader.TryReadBigEndian(out int intValue))
src\aspnetcore\src\submodules\MessagePack-CSharp\src\MessagePack.UnityClient\Assets\Scripts\MessagePack\T4\MessagePackReader.Integers.cs (56)
34ThrowInsufficientBufferUnless(this.reader.TryRead(out sbyte sbyteResult)); 37ThrowInsufficientBufferUnless(this.reader.TryReadBigEndian(out ushort ushortResult)); 40ThrowInsufficientBufferUnless(this.reader.TryReadBigEndian(out short shortResult)); 43ThrowInsufficientBufferUnless(this.reader.TryReadBigEndian(out uint uintResult)); 46ThrowInsufficientBufferUnless(this.reader.TryReadBigEndian(out int intResult)); 49ThrowInsufficientBufferUnless(this.reader.TryReadBigEndian(out ulong ulongResult)); 52ThrowInsufficientBufferUnless(this.reader.TryReadBigEndian(out long longResult)); 87ThrowInsufficientBufferUnless(this.reader.TryRead(out sbyte sbyteResult)); 90ThrowInsufficientBufferUnless(this.reader.TryReadBigEndian(out ushort ushortResult)); 93ThrowInsufficientBufferUnless(this.reader.TryReadBigEndian(out short shortResult)); 96ThrowInsufficientBufferUnless(this.reader.TryReadBigEndian(out uint uintResult)); 99ThrowInsufficientBufferUnless(this.reader.TryReadBigEndian(out int intResult)); 102ThrowInsufficientBufferUnless(this.reader.TryReadBigEndian(out ulong ulongResult)); 105ThrowInsufficientBufferUnless(this.reader.TryReadBigEndian(out long longResult)); 140ThrowInsufficientBufferUnless(this.reader.TryRead(out sbyte sbyteResult)); 143ThrowInsufficientBufferUnless(this.reader.TryReadBigEndian(out ushort ushortResult)); 146ThrowInsufficientBufferUnless(this.reader.TryReadBigEndian(out short shortResult)); 149ThrowInsufficientBufferUnless(this.reader.TryReadBigEndian(out uint uintResult)); 152ThrowInsufficientBufferUnless(this.reader.TryReadBigEndian(out int intResult)); 155ThrowInsufficientBufferUnless(this.reader.TryReadBigEndian(out ulong ulongResult)); 158ThrowInsufficientBufferUnless(this.reader.TryReadBigEndian(out long longResult)); 193ThrowInsufficientBufferUnless(this.reader.TryRead(out sbyte sbyteResult)); 196ThrowInsufficientBufferUnless(this.reader.TryReadBigEndian(out ushort ushortResult)); 199ThrowInsufficientBufferUnless(this.reader.TryReadBigEndian(out short shortResult)); 202ThrowInsufficientBufferUnless(this.reader.TryReadBigEndian(out uint uintResult)); 205ThrowInsufficientBufferUnless(this.reader.TryReadBigEndian(out int intResult)); 208ThrowInsufficientBufferUnless(this.reader.TryReadBigEndian(out ulong ulongResult)); 211ThrowInsufficientBufferUnless(this.reader.TryReadBigEndian(out long longResult)); 246ThrowInsufficientBufferUnless(this.reader.TryRead(out sbyte sbyteResult)); 249ThrowInsufficientBufferUnless(this.reader.TryReadBigEndian(out ushort ushortResult)); 252ThrowInsufficientBufferUnless(this.reader.TryReadBigEndian(out short shortResult)); 255ThrowInsufficientBufferUnless(this.reader.TryReadBigEndian(out uint uintResult)); 258ThrowInsufficientBufferUnless(this.reader.TryReadBigEndian(out int intResult)); 261ThrowInsufficientBufferUnless(this.reader.TryReadBigEndian(out ulong ulongResult)); 264ThrowInsufficientBufferUnless(this.reader.TryReadBigEndian(out long longResult)); 299ThrowInsufficientBufferUnless(this.reader.TryRead(out sbyte sbyteResult)); 302ThrowInsufficientBufferUnless(this.reader.TryReadBigEndian(out ushort ushortResult)); 305ThrowInsufficientBufferUnless(this.reader.TryReadBigEndian(out short shortResult)); 308ThrowInsufficientBufferUnless(this.reader.TryReadBigEndian(out uint uintResult)); 311ThrowInsufficientBufferUnless(this.reader.TryReadBigEndian(out int intResult)); 314ThrowInsufficientBufferUnless(this.reader.TryReadBigEndian(out ulong ulongResult)); 317ThrowInsufficientBufferUnless(this.reader.TryReadBigEndian(out long longResult)); 352ThrowInsufficientBufferUnless(this.reader.TryRead(out sbyte sbyteResult)); 355ThrowInsufficientBufferUnless(this.reader.TryReadBigEndian(out ushort ushortResult)); 358ThrowInsufficientBufferUnless(this.reader.TryReadBigEndian(out short shortResult)); 361ThrowInsufficientBufferUnless(this.reader.TryReadBigEndian(out uint uintResult)); 364ThrowInsufficientBufferUnless(this.reader.TryReadBigEndian(out int intResult)); 367ThrowInsufficientBufferUnless(this.reader.TryReadBigEndian(out ulong ulongResult)); 370ThrowInsufficientBufferUnless(this.reader.TryReadBigEndian(out long longResult)); 405ThrowInsufficientBufferUnless(this.reader.TryRead(out sbyte sbyteResult)); 408ThrowInsufficientBufferUnless(this.reader.TryReadBigEndian(out ushort ushortResult)); 411ThrowInsufficientBufferUnless(this.reader.TryReadBigEndian(out short shortResult)); 414ThrowInsufficientBufferUnless(this.reader.TryReadBigEndian(out uint uintResult)); 417ThrowInsufficientBufferUnless(this.reader.TryReadBigEndian(out int intResult)); 420ThrowInsufficientBufferUnless(this.reader.TryReadBigEndian(out ulong ulongResult)); 423ThrowInsufficientBufferUnless(this.reader.TryReadBigEndian(out long longResult));
80 references to reader
Microsoft.AspNetCore.Components.Server (80)
src\aspnetcore\src\submodules\MessagePack-CSharp\src\MessagePack.UnityClient\Assets\Scripts\MessagePack\MessagePackReader.cs (64)
81public ReadOnlySequence<byte> Sequence => this.reader.Sequence; 86public SequencePosition Position => this.reader.Position; 91public long Consumed => this.reader.Consumed; 96public bool End => this.reader.End; 120ThrowInsufficientBufferUnless(this.reader.TryPeek(out byte code)); 171if (this.reader.Remaining == 0) 184if (!this.reader.TryAdvance(1)) 192if (!this.reader.TryAdvance(2)) 200if (!this.reader.TryAdvance(3)) 209if (!this.reader.TryAdvance(5)) 218if (!this.reader.TryAdvance(9)) 248if (!this.TryGetStringLengthInBytes(out int length) || !this.reader.TryAdvance(length)) 257if (!this.TryGetBytesLength(out length) || !this.reader.TryAdvance(length)) 271if (!this.TryReadExtensionFormatHeader(out ExtensionHeader header) || !this.reader.TryAdvance(header.Length)) 293ThrowInsufficientBufferUnless(this.reader.TryRead(out byte code)); 310this.reader.Advance(1); 326ReadOnlySequence<byte> result = this.reader.Sequence.Slice(this.reader.Position, length); 327this.reader.Advance(length); 391if (!this.reader.TryRead(out byte code)) 468if (!this.reader.TryRead(out byte code)) 510ThrowInsufficientBufferUnless(this.reader.TryRead(out byte code)); 548ThrowInsufficientBufferUnless(this.reader.TryRead(out byte code)); 571ThrowInsufficientBufferUnless(this.reader.TryRead(out byte byteValue)); 614ThrowInsufficientBufferUnless(this.reader.TryRead(out byte code)); 625ThrowInsufficientBufferUnless(this.reader.TryRead(out byte byteValue)); 637ThrowInsufficientBufferUnless(this.reader.TryRead(out byteValue)); 731ThrowInsufficientBufferUnless(this.reader.Remaining >= length); 732ReadOnlySequence<byte> result = this.reader.Sequence.Slice(this.reader.Position, length); 733this.reader.Advance(length); 756ThrowInsufficientBufferUnless(this.reader.Remaining >= length); 757ReadOnlySequence<byte> result = this.reader.Sequence.Slice(this.reader.Position, length); 758this.reader.Advance(length); 786long oldPosition = this.reader.Consumed; 788ThrowInsufficientBufferUnless(this.reader.Remaining >= length); 790if (this.reader.CurrentSpanIndex + length <= this.reader.CurrentSpan.Length) 792span = this.reader.CurrentSpan.Slice(this.reader.CurrentSpanIndex, length); 793this.reader.Advance(length); 798this.reader.Rewind(this.reader.Consumed - oldPosition); 822ReadOnlySpan<byte> unreadSpan = this.reader.UnreadSpan; 829this.reader.Advance(byteLength); 860ThrowInsufficientBufferUnless(this.reader.Remaining >= header.Length); 887if (!this.reader.TryRead(out byte code)) 911if (!this.reader.TryRead(out byte byteLength)) 938if (!this.reader.TryRead(out byte typeCode)) 967ReadOnlySequence<byte> data = this.reader.Sequence.Slice(this.reader.Position, header.Length); 968this.reader.Advance(header.Length); 1015long consumed = this.reader.Consumed; 1022&& this.minimumRemainingChildBytes <= this.reader.Remaining 1023&& minimumChildBytes <= this.reader.Remaining - this.minimumRemainingChildBytes); 1035if (!this.reader.TryRead(out byte code)) 1045if (this.reader.TryRead(out byte byteLength)) 1092if (!this.reader.TryRead(out byte code)) 1123if (this.reader.TryRead(out byte byteValue)) 1167ThrowInsufficientBufferUnless(this.reader.Remaining >= byteLength); 1178int bytesRead = Math.Min(remainingByteLength, this.reader.UnreadSpan.Length); 1182initializedChars += decoder.GetChars(this.reader.UnreadSpan.Slice(0, bytesRead), charArray.AsSpan(initializedChars), flush); 1193this.reader.Advance(bytesRead);
src\aspnetcore\src\submodules\MessagePack-CSharp\src\MessagePack.UnityClient\Assets\Scripts\MessagePack\T4\MessagePackReader.Integers.cs (16)
26ThrowInsufficientBufferUnless(this.reader.TryRead(out byte code)); 31ThrowInsufficientBufferUnless(this.reader.TryRead(out byte byteResult)); 79ThrowInsufficientBufferUnless(this.reader.TryRead(out byte code)); 84ThrowInsufficientBufferUnless(this.reader.TryRead(out byte byteResult)); 132ThrowInsufficientBufferUnless(this.reader.TryRead(out byte code)); 137ThrowInsufficientBufferUnless(this.reader.TryRead(out byte byteResult)); 185ThrowInsufficientBufferUnless(this.reader.TryRead(out byte code)); 190ThrowInsufficientBufferUnless(this.reader.TryRead(out byte byteResult)); 238ThrowInsufficientBufferUnless(this.reader.TryRead(out byte code)); 243ThrowInsufficientBufferUnless(this.reader.TryRead(out byte byteResult)); 291ThrowInsufficientBufferUnless(this.reader.TryRead(out byte code)); 296ThrowInsufficientBufferUnless(this.reader.TryRead(out byte byteResult)); 344ThrowInsufficientBufferUnless(this.reader.TryRead(out byte code)); 349ThrowInsufficientBufferUnless(this.reader.TryRead(out byte byteResult)); 397ThrowInsufficientBufferUnless(this.reader.TryRead(out byte code)); 402ThrowInsufficientBufferUnless(this.reader.TryRead(out byte byteResult));