CSPspEmu.Core.NandReader.ReadPage C# (CSharp) Method

ReadPage() public method

public ReadPage ( int Index ) : byte[]
Index int
return byte[]
        public byte[] ReadPage(int Index)
        {
            try
            {
                Stream.Position = BytesPerRawPage * Index;
                var Bytes = Stream.ReadBytes(BytesPerPage);
                //ArrayUtils.HexDump(Bytes);
                return Bytes;
            }
            catch (Exception)
            {
                return ((byte)0).Repeat(BytesPerPage);
            }
        }