Exemple #1
0
        public void OpenFile(string filename)
        {
            BinaryReader b_reader = new BinaryReader(new FileStream(filename, FileMode.Open));

            BfsBinaryReader.Endianness endianness;
            if(schema.ByteOrder.ByteOrder == BfsByteOrderEnum.BigEndian)
                endianness = BfsBinaryReader.Endianness.BigEndian;
            else
                endianness = BfsBinaryReader.Endianness.LittleEndian;

            reader = new BfsBinaryReader(b_reader, endianness);
            TreeNode rootNode = new TreeNode(schema.FormatBlock.Name);
            treeView1.Nodes.Add(rootNode);
            ReadDataBlock(schema.FormatBlock, rootNode);
            rootNode.ExpandAll();
        }
 public StopCaseTester( BfsBinaryReader file, bool stopsAtEOF, StopCase [] stopcases )
 {
     this.stopcases = stopcases;
         this.file = file;
         this.stopsAtEOF = stopsAtEOF;
         stoppedAtCase = 0;
 }