Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
◆
TryReadAll()
[2/2]
static int System.Reflection.Internal.StreamExtensions.TryReadAll
(
this
Stream
stream
,
Span
< byte >
buffer
)
inline
static
package
Definition at line
42
of file
StreamExtensions.cs
.
43
{
44
int
i
;
45
int
num;
46
for
(i = 0;
i
<
buffer
.Length;
i
+= num)
47
{
48
num =
stream
.Read(
buffer
.Slice(i));
49
if
(num == 0)
50
{
51
break
;
52
}
53
}
54
return
i
;
55
}
System.Text.RegularExpressions.ExceptionArgument.i
@ i
System.ExceptionArgument.buffer
@ buffer
System.ExceptionArgument.stream
@ stream
References
System.buffer
, and
System.stream
.
System
Reflection
Internal
StreamExtensions
Generated by
1.10.0