Example #1
0
        public void SalvarNcer()
        {
            MemoryStream novoNcer = new MemoryStream();

            using (BinaryWriter bw = new BinaryWriter(novoNcer))
            {
                EscreverPropiedades(bw);
                Cebk.EscreverPropiedades(bw);
                Labl.EscreverPropiedades(bw);
                Uext.EscreverPropiedades(bw);
            }

            File.WriteAllBytes(NitroFilePath, novoNcer.ToArray());
        }
Example #2
0
        public Ncer(BinaryReader br, string diretorio) : base(br, diretorio)
        {
            if (Errors.Count == 0)
            {
                Cebk = new Cebk(br);
                if (SectionCount > 1)
                {
                    Labl = new Labl(br, Cebk.QuatidadeEntradasDeBeks);
                    Uext = new Uext(br);
                }
            }

            br.Close();
        }