doc/classes/Atr.src/M000241.html in ripxplore-0.11.0 vs doc/classes/Atr.src/M000241.html in ripxplore-0.12.0

- old
+ new

@@ -3,17 +3,17 @@ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head> - <title>get_sector (Atr)</title> + <title>new (Atr)</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/Atr.rb, line 47</span> -<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">get_sector</span>(<span class="ruby-identifier">track_no</span>,<span class="ruby-identifier">sector_no</span>) - <span class="ruby-identifier">offset_of_sector</span>=(<span class="ruby-identifier">sector_no</span><span class="ruby-operator">-</span><span class="ruby-value">1</span>)<span class="ruby-operator">*</span><span class="ruby-ivar">@sector_size</span><span class="ruby-operator">+</span><span class="ruby-constant">ATR_HEADER_LENGTH</span> - <span class="ruby-keyword kw">return</span> <span class="ruby-ivar">@file_bytes</span>[<span class="ruby-identifier">offset_of_sector</span>,<span class="ruby-ivar">@sector_size</span>] + <pre><span class="ruby-comment cmt"># File lib/image_formats/Atr.rb, line 52</span> +<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">file_bytes</span>) + <span class="ruby-ivar">@file_bytes</span>=<span class="ruby-identifier">file_bytes</span> + <span class="ruby-ivar">@sector_size</span>=<span class="ruby-identifier">file_bytes</span>[<span class="ruby-value">4</span>,<span class="ruby-value">2</span>].<span class="ruby-identifier">unpack</span>(<span class="ruby-value str">&quot;v&quot;</span>)[<span class="ruby-value">0</span>] <span class="ruby-keyword kw">end</span></pre> </body> </html> \ No newline at end of file