Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ TryReadAll() [1/2]

static int System.Reflection.Internal.StreamExtensions.TryReadAll ( this Stream stream,
byte[] buffer,
int offset,
int count )
inlinestaticpackage

Definition at line 27 of file StreamExtensions.cs.

28 {
29 int i;
30 int num;
31 for (i = 0; i < count; i += num)
32 {
33 num = stream.Read(buffer, offset + i, count - i);
34 if (num == 0)
35 {
36 break;
37 }
38 }
39 return i;
40 }

References System.buffer, System.count, System.offset, and System.stream.