wabbajack/BSA.Tools/Extensions.cs
Timothy Baldridge 2d061bc1e4 Initial commit
2019-07-20 22:40:54 -06:00

19 lines
405 B
C#

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());
}
}
}