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

◆ Copy()

static void System.Net.Http.StreamToStreamCopy.Copy ( Stream source,
Stream destination,
int bufferSize,
bool disposeSource )
inlinestatic

Definition at line 9 of file StreamToStreamCopy.cs.

10 {
11 if (bufferSize == 0)
12 {
13 source.CopyTo(destination);
14 }
15 else
16 {
17 source.CopyTo(destination, bufferSize);
18 }
19 if (disposeSource)
20 {
22 }
23 }
static void DisposeSource(Stream source)

References System.destination, System.Net.Http.StreamToStreamCopy.DisposeSource(), and System.source.

Referenced by System.Net.Http.StreamContent.SerializeToStream().