doc/classes/D81.src/M000428.html in ripxplore-0.12.0 vs doc/classes/D81.src/M000428.html in ripxplore-0.13.0

- old
+ new

@@ -3,22 +3,16 @@ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head> - <title>set_sector (D81)</title> + <title>end_track (D81)</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" /> </head> <body class="standalone-code"> - <pre><span class="ruby-comment cmt"># File lib/image_formats/D81.rb, line 59</span> -<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">set_sector</span>(<span class="ruby-identifier">track_no</span>,<span class="ruby-identifier">sector_no</span>,<span class="ruby-identifier">sector_contents</span>) - <span class="ruby-identifier">raise</span> <span class="ruby-value str">&quot;d81 currently read only&quot;</span> - <span class="ruby-identifier">raise</span> <span class="ruby-node">&quot;invalid track number #{track_no}&quot;</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">track_no</span>.<span class="ruby-identifier">between?</span>(<span class="ruby-value">1</span>,<span class="ruby-identifier">end_track</span>) - <span class="ruby-identifier">raise</span> <span class="ruby-node">&quot;invalid sector number #{sector_no}&quot;</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">sector_no</span>.<span class="ruby-identifier">between?</span>(<span class="ruby-value">0</span>,<span class="ruby-constant">D81_SECTORS_PER_TRACK</span><span class="ruby-operator">-</span><span class="ruby-value">1</span>) - <span class="ruby-identifier">padded_sector_contents</span>=(<span class="ruby-identifier">sector_contents</span><span class="ruby-operator">+</span>(<span class="ruby-value str">&quot;\000&quot;</span><span class="ruby-operator">*</span><span class="ruby-constant">D81_BYTES_PER_SECTOR</span>))[<span class="ruby-value">0</span>,<span class="ruby-constant">D81_BYTES_PER_SECTOR</span>] - <span class="ruby-identifier">track_start</span>=<span class="ruby-constant">D81_BYTES_PER_SECTOR</span><span class="ruby-operator">*</span>(<span class="ruby-constant">D81_SECTORS_PER_TRACK</span><span class="ruby-operator">*</span>(<span class="ruby-identifier">track_no</span><span class="ruby-operator">-</span><span class="ruby-value">1</span>)) - <span class="ruby-identifier">sector_start</span>=<span class="ruby-identifier">track_start</span><span class="ruby-operator">+</span>(<span class="ruby-constant">D81_BYTES_PER_SECTOR</span><span class="ruby-operator">*</span><span class="ruby-identifier">sector_no</span>) - <span class="ruby-identifier">file_bytes</span>[<span class="ruby-identifier">sector_start</span>,<span class="ruby-constant">D81_BYTES_PER_SECTOR</span>]=<span class="ruby-identifier">padded_sector_contents</span> + <pre><span class="ruby-comment cmt"># File lib/image_formats/D81.rb, line 37</span> +<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">end_track</span> + <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">track_count</span> <span class="ruby-keyword kw">end</span></pre> </body> </html> \ No newline at end of file