/// <summary> /// This way of initializing an instance of RTH Data would allow you to read an existing RTH Data file, and rebuild it, or apply it. /// </summary> /// <param name="stream">This is the stream to read the existing RTH Data from</param> public RTHData(Stream stream) { //Initialize our IO EndianIO IO = new EndianIO(stream, EndianType.BigEndian); //Open our IO IO.Open(); //Initialize and read our RTHDataHeader RTH_Data_Header = new RTHDataHeader(IO); //Initialize RTH Blocks RTH_Data_Blocks = new RTHDataBlocks(IO); //Close our IO IO.Close(); }
/// <summary> /// This way of initializing an instance of RTH Data will not read an existing RTH Data, but allow you to build a new one. /// </summary> public RTHData() { //Initialize our classes RTH_Data_Header = new RTHDataHeader(); RTH_Data_Blocks = new RTHDataBlocks(); }