Sha256: 2ed44c2463899ba8eb2d9db355ca34ae46f69b09c7c2681a3019e4df0fbf6023

Contents?: true

Size: 1.28 KB

Versions: 30

Compression:

Stored size: 1.28 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

30 entries across 9 versions & 1 rubygems

Version Path
ripxplore-0.17.1 doc/classes/Atr.src/M000224.html
ripxplore-0.17.1 doc/classes/Atr.src/M000255.html
ripxplore-0.17.1 doc/classes/Atr.src/M000245.html
ripxplore-0.17.1 doc/classes/Atr.src/M000049.html
ripxplore-0.17.1 doc/classes/Atr.src/M000043.html
ripxplore-0.17.0 doc/classes/Atr.src/M000043.html
ripxplore-0.17.0 doc/classes/Atr.src/M000245.html
ripxplore-0.17.0 doc/classes/Atr.src/M000255.html
ripxplore-0.17.0 doc/classes/Atr.src/M000224.html
ripxplore-0.17.0 doc/classes/Atr.src/M000050.html
ripxplore-0.16.1 doc/classes/Atr.src/M000224.html
ripxplore-0.16.1 doc/classes/Atr.src/M000255.html
ripxplore-0.16.1 doc/classes/Atr.src/M000043.html
ripxplore-0.16.1 doc/classes/Atr.src/M000245.html
ripxplore-0.15.1 doc/classes/Atr.src/M000224.html
ripxplore-0.15.1 doc/classes/Atr.src/M000255.html
ripxplore-0.15.1 doc/classes/Atr.src/M000245.html
ripxplore-0.15.1 doc/classes/Atr.src/M000043.html
ripxplore-0.14.1 doc/classes/Atr.src/M000255.html
ripxplore-0.14.1 doc/classes/Atr.src/M000224.html