wabbajack/BSA.Tools/Extensions.cs

19 lines
405 B
C#
Raw Normal View History

2019-07-21 04:40:54 +00:00
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
namespace BSA.Tools
{
public static class Extensions
{
public static string ReadFourCC(this BinaryReader stream)
{
byte[] buf = new byte[4];
stream.Read(buf, 0, 4);
return new string(buf.Select(b => (char)b).ToArray());
}
}
}