Beispiel #1
0
 /// <summary>
 /// Writes the content of the block to the specified binary stream.
 /// </summary>
 /// <param name="writer">Stream to write the block to</param>
 public void WriteTo(BinaryWriter writer)
 {
     writer.Write(SymbolFlags);
     TzxDataBlockBase.WriteWords(writer, PulseLengths);
 }
Beispiel #2
0
 /// <summary>
 /// Reads the content of the block from the specified binary stream.
 /// </summary>
 /// <param name="reader">Stream to read the block from</param>
 public void ReadFrom(BinaryReader reader)
 {
     SymbolFlags  = reader.ReadByte();
     PulseLengths = TzxDataBlockBase.ReadWords(reader, PulseLengths.Length);
 }