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