using System.IO;
namespace Ryujinx.HLE.Loaders.Npdm
{
public class KernelAccessControl
{
public int[] Capabilities { get; private set; }
/// The stream does not support reading, is , or is already closed.
/// The end of the stream is reached.
/// The stream is closed.
/// An I/O error occurred.
public KernelAccessControl(Stream stream, int offset, int size)
{
stream.Seek(offset, SeekOrigin.Begin);
Capabilities = new int[size / 4];
BinaryReader reader = new(stream);
for (int index = 0; index < Capabilities.Length; index++)
{
Capabilities[index] = reader.ReadInt32();
}
}
}
}