Sha256: 322fb3fd6290bcd7edbdb9910013c1c3c13e0fcb836b1d85c2219817d30ecefb

Contents?: true

Size: 1.29 KB

Versions: 10

Compression:

Stored size: 1.29 KB

Contents

<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html 
     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>
  <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>]
<span class="ruby-keyword kw">end</span></pre>
</body>
</html>

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
ripxplore-0.0.1 doc/classes/Atr.src/M000213.html
ripxplore-0.4.0 doc/classes/Atr.src/M000205.html
ripxplore-0.0.2 doc/classes/Atr.src/M000213.html
ripxplore-0.5.0 doc/classes/Atr.src/M000205.html
ripxplore-0.5.1 doc/classes/Atr.src/M000205.html
ripxplore-0.7.0 doc/classes/Atr.src/M000205.html
ripxplore-0.5.2 doc/classes/Atr.src/M000205.html
ripxplore-0.7.1 doc/classes/Atr.src/M000212.html
ripxplore-0.7.2 doc/classes/Atr.src/M000212.html
ripxplore-0.8.0 doc/classes/Atr.src/M000212.html