private NARC_new() { this.Header = new NARC_new.ArchiveHeader(); this.FATB = new NARC_new.FileAllocationTableBlock(); this.FNTB = new NARC_new.FilenameTableBlock(); this.FIMG = new NARC_new.FileImageBlock(); }
public NARC_new(byte[] file) { EndianBinaryReader er = new EndianBinaryReader((Stream) new MemoryStream(file), Endianness.LittleEndian); try { this.Header = new NARC_new.ArchiveHeader(er); this.FATB = new NARC_new.FileAllocationTableBlock(er); this.FNTB = new NARC_new.FilenameTableBlock(er); this.FIMG = new NARC_new.FileImageBlock(er); } catch (SignatureNotCorrectException ex) { int num = (int)MessageBox.Show(ex.ToString(), "Error", MessageBoxButton.OK, MessageBoxImage.Hand); } finally { er.Close(); } }