Jypeli
9
The simple game programming library
StreamHelpers.cs
Siirry tämän tiedoston dokumentaatioon.
1
using
System
.IO;
2
3
namespace
Jypeli
4
{
8
public
static
class
StreamHelpers
9
{
16
public
static
void
CopyStreamTo
(
this
Stream input, Stream output )
17
{
18
byte
[] buffer =
new
byte
[32768];
19
int
read;
20
21
while
( ( read = input.Read( buffer, 0, buffer.Length ) ) > 0 )
22
{
23
output.Write( buffer, 0, read );
24
}
25
}
26
}
27
}
Jypeli
Definition:
Automobile.cs:5
Jypeli.StreamHelpers
Apufunktioita virtojen käyttöön.
Definition:
StreamHelpers.cs:9
Jypeli.StreamHelpers.CopyStreamTo
static void CopyStreamTo(this Stream input, Stream output)
Kopioi virran sisällön toiseen virtaan. Sama kuin Stream.CopyTo (C# ver 4), mutta toimii myös vanhemm...
Definition:
StreamHelpers.cs:16
System
Definition:
CFFauxAttributes.cs:29
Jypeli
Helpers
StreamHelpers.cs
Generoinut projektille Jypeli Sat Oct 17 2020 19:03:15
1.8.20