Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
FileStreamReadLightUp.cs
Go to the documentation of this file.
1using System.IO;
2
4
5internal static class FileStreamReadLightUp
6{
7 internal static bool IsFileStream(Stream stream)
8 {
9 return stream is FileStream;
10 }
11
12 internal unsafe static int ReadFile(Stream stream, byte* buffer, int size)
13 {
14 return stream.Read(new Span<byte>(buffer, size));
15 }
16}
static unsafe int ReadFile(Stream stream, byte *buffer, int size)