/// <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); }
/// <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); }