mirror of
https://github.com/wabbajack-tools/wabbajack.git
synced 2024-08-30 18:42:17 +00:00
19 lines
405 B
C#
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());
|
|
}
|
|
}
|
|
}
|