ripxplore 0.4.0 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/bin/ripxplore.rb +103 -95
- data/doc/classes/AppleDos.html +20 -22
- data/doc/classes/AppleDos.src/M000036.html +18 -0
- data/doc/classes/AppleDos.src/M000037.html +18 -0
- data/doc/classes/AppleDos.src/M000038.html +18 -0
- data/doc/classes/AppleDos.src/M000039.html +73 -0
- data/doc/classes/AppleDosPic.html +20 -20
- data/doc/classes/AppleDosPic.src/M000051.html +20 -0
- data/doc/classes/AppleDosPic.src/M000052.html +18 -0
- data/doc/classes/AppleDosPic.src/M000053.html +18 -0
- data/doc/classes/AppleDosPic.src/M000054.html +18 -0
- data/doc/classes/AppleHiResPic.html +32 -38
- data/doc/classes/AppleHiResPic.src/M000012.html +18 -0
- data/doc/classes/AppleHiResPic.src/M000013.html +18 -0
- data/doc/classes/AppleHiResPic.src/M000014.html +53 -0
- data/doc/classes/AppleHiResPic.src/M000015.html +18 -0
- data/doc/classes/AppleHiResPic.src/M000016.html +18 -0
- data/doc/classes/AppleHiResPic.src/M000017.html +18 -0
- data/doc/classes/AxePackedAppleDosPic.html +145 -0
- data/doc/classes/AxePackedAppleDosPic.src/M000010.html +59 -0
- data/doc/classes/ImageSniffing.html +8 -8
- data/doc/classes/ImageSniffing.src/M000008.html +121 -0
- data/doc/classes/NADOLPic.html +10 -10
- data/doc/classes/NADOLPic.src/M000049.html +20 -0
- data/doc/classes/NADOLPic.src/M000050.html +18 -0
- data/doc/classes/NativeFileType.html +91 -91
- data/doc/classes/NativeFileType.src/M000018.html +22 -0
- data/doc/classes/NativeFileType.src/M000019.html +18 -0
- data/doc/classes/NativeFileType.src/M000020.html +18 -0
- data/doc/classes/NativeFileType.src/M000021.html +18 -0
- data/doc/classes/NativeFileType.src/M000022.html +18 -0
- data/doc/classes/NativeFileType.src/M000023.html +18 -0
- data/doc/classes/NativeFileType.src/M000024.html +18 -0
- data/doc/classes/NativeFileType.src/M000025.html +23 -0
- data/doc/classes/NativeFileType.src/M000026.html +18 -0
- data/doc/classes/NativeFileType.src/M000027.html +18 -0
- data/doc/classes/NativeFileType.src/M000028.html +24 -0
- data/doc/classes/NativeFileType.src/M000029.html +41 -0
- data/doc/classes/NativeFileType.src/M000030.html +24 -0
- data/doc/classes/NativeFileType.src/M000031.html +18 -0
- data/doc/classes/NativeFileType.src/M000032.html +18 -0
- data/doc/classes/NativeFileType.src/M000033.html +18 -0
- data/doc/classes/NativeFileType.src/M000034.html +20 -0
- data/doc/classes/NativeFileType.src/M000035.html +28 -0
- data/doc/classes/PackedAppleDosPic.html +9 -8
- data/doc/classes/PackedAppleDosPic.src/M000009.html +40 -0
- data/doc/classes/PackedProDosPic.html +145 -0
- data/doc/classes/PackedProDosPic.src/M000011.html +40 -0
- data/doc/classes/PascalPic.html +10 -10
- data/doc/classes/PascalPic.src/M000047.html +20 -0
- data/doc/classes/PascalPic.src/M000048.html +18 -0
- data/doc/classes/ProDosBINFile.html +186 -0
- data/doc/classes/ProDosBINFile.src/M000040.html +20 -0
- data/doc/classes/ProDosBINFile.src/M000041.html +18 -0
- data/doc/classes/ProDosBINFile.src/M000042.html +18 -0
- data/doc/classes/ProDosBINFile.src/M000043.html +18 -0
- data/doc/classes/ProDosBinPic.html +15 -15
- data/doc/classes/ProDosBinPic.src/M000044.html +20 -0
- data/doc/classes/ProDosBinPic.src/M000045.html +18 -0
- data/doc/classes/ProDosBinPic.src/M000046.html +18 -0
- data/doc/classes/ProDosFile.html +15 -15
- data/doc/classes/ProDosFile.src/M000005.html +20 -0
- data/doc/classes/ProDosFile.src/M000006.html +18 -0
- data/doc/classes/ProDosFile.src/M000007.html +19 -0
- data/doc/classes/RipXplore.html +1 -1
- data/doc/classes/ScrunchedAppleDosPic.html +139 -0
- data/doc/classes/ScrunchedAppleDosPic.src/M000004.html +37 -0
- data/doc/created.rid +1 -1
- data/doc/files/bin/ripxplore_rb.html +1 -1
- data/doc/files/lib/NativeFileType_rb.html +3 -3
- data/doc/files/lib/RipXplore_rb.html +2 -2
- data/doc/files/lib/file_systems/AppleDos_rb.html +2 -2
- data/doc/files/lib/native_file_types/apple2/AppleHiResPic_rb.html +1 -1
- data/doc/files/lib/native_file_types/apple2/PackedHiResPicFormats_rb.html +101 -0
- data/doc/files/lib/native_file_types/apple2/ProDosFile_rb.html +1 -1
- data/doc/files/test/tc_apple_2_rb.html +1 -1
- data/doc/files/test/testhelper_rb.html +17 -17
- data/doc/files/test/testhelper_rb.src/M000001.html +21 -0
- data/doc/files/test/testhelper_rb.src/M000002.html +18 -0
- data/doc/files/test/testhelper_rb.src/M000003.html +50 -8
- data/doc/fr_class_index.html +14 -0
- data/doc/fr_file_index.html +8 -0
- data/doc/fr_method_index.html +54 -0
- data/doc/index.html +1 -1
- data/lib/NativeFileType.rb +3 -2
- data/lib/RipXplore.rb +1 -1
- data/lib/file_systems/AppleDos.rb +16 -29
- data/lib/native_file_types/apple2/AppleHiResPic.rb +11 -10
- data/lib/native_file_types/apple2/PackedHiResPicFormats.rb +207 -0
- data/lib/native_file_types/apple2/ProDosFile.rb +21 -0
- data/test/native_files/30026e5208f55f2cbae4fc591f51de4a-5.png +0 -0
- data/test/native_files/f05d95201b4e736216448ba9f9902db6-11.png +0 -0
- data/test/native_files/f8819465c0c0eb1e74fa88c7e1e59405-7.png +0 -0
- data/test/tc_apple_2.rb +23 -4
- data/test/testhelper.rb +2 -0
- data/test/testlog.txt +56809 -119242
- metadata +68 -3
- data/lib/native_file_types/apple2/PackedAppleDosPic.rb +0 -85
@@ -0,0 +1,22 @@
|
|
1
|
+
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
+
<!DOCTYPE html
|
3
|
+
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
+
|
6
|
+
<html>
|
7
|
+
<head>
|
8
|
+
<title>new (NativeFileType)</title>
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
+
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
11
|
+
</head>
|
12
|
+
<body class="standalone-code">
|
13
|
+
<pre><span class="ruby-comment cmt"># File lib/NativeFileType.rb, line 10</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">file_system_image</span>,<span class="ruby-identifier">filename</span>,<span class="ruby-identifier">contents</span>,<span class="ruby-identifier">file_type</span>,<span class="ruby-identifier">aux_code</span>)
|
15
|
+
<span class="ruby-ivar">@file_system_image</span>=<span class="ruby-identifier">file_system_image</span>
|
16
|
+
<span class="ruby-ivar">@filename</span>=<span class="ruby-identifier">filename</span>
|
17
|
+
<span class="ruby-ivar">@contents</span>=<span class="ruby-identifier">contents</span>
|
18
|
+
<span class="ruby-ivar">@file_type</span>=<span class="ruby-identifier">file_type</span>
|
19
|
+
<span class="ruby-ivar">@aux_code</span>=<span class="ruby-identifier">aux_code</span>
|
20
|
+
<span class="ruby-keyword kw">end</span></pre>
|
21
|
+
</body>
|
22
|
+
</html>
|
@@ -0,0 +1,18 @@
|
|
1
|
+
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
+
<!DOCTYPE html
|
3
|
+
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
+
|
6
|
+
<html>
|
7
|
+
<head>
|
8
|
+
<title>matching_score (NativeFileType)</title>
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
+
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
11
|
+
</head>
|
12
|
+
<body class="standalone-code">
|
13
|
+
<pre><span class="ruby-comment cmt"># File lib/NativeFileType.rb, line 18</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-constant">NativeFileType</span>.<span class="ruby-identifier">matching_score</span>
|
15
|
+
<span class="ruby-identifier">ancestors</span>.<span class="ruby-identifier">length</span>
|
16
|
+
<span class="ruby-keyword kw">end</span></pre>
|
17
|
+
</body>
|
18
|
+
</html>
|
@@ -0,0 +1,18 @@
|
|
1
|
+
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
+
<!DOCTYPE html
|
3
|
+
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
+
|
6
|
+
<html>
|
7
|
+
<head>
|
8
|
+
<title>non_matching_score (NativeFileType)</title>
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
+
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
11
|
+
</head>
|
12
|
+
<body class="standalone-code">
|
13
|
+
<pre><span class="ruby-comment cmt"># File lib/NativeFileType.rb, line 22</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-constant">NativeFileType</span>.<span class="ruby-identifier">non_matching_score</span>
|
15
|
+
<span class="ruby-value">0</span>
|
16
|
+
<span class="ruby-keyword kw">end</span></pre>
|
17
|
+
</body>
|
18
|
+
</html>
|
@@ -0,0 +1,18 @@
|
|
1
|
+
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
+
<!DOCTYPE html
|
3
|
+
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
+
|
6
|
+
<html>
|
7
|
+
<head>
|
8
|
+
<title>all_native_file_types (NativeFileType)</title>
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
+
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
11
|
+
</head>
|
12
|
+
<body class="standalone-code">
|
13
|
+
<pre><span class="ruby-comment cmt"># File lib/NativeFileType.rb, line 27</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-constant">NativeFileType</span>.<span class="ruby-identifier">all_native_file_types</span>
|
15
|
+
<span class="ruby-constant">NativeFileType</span>.<span class="ruby-identifier">subclasses</span>
|
16
|
+
<span class="ruby-keyword kw">end</span></pre>
|
17
|
+
</body>
|
18
|
+
</html>
|
@@ -0,0 +1,18 @@
|
|
1
|
+
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
+
<!DOCTYPE html
|
3
|
+
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
+
|
6
|
+
<html>
|
7
|
+
<head>
|
8
|
+
<title>type_description (NativeFileType)</title>
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
+
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
11
|
+
</head>
|
12
|
+
<body class="standalone-code">
|
13
|
+
<pre><span class="ruby-comment cmt"># File lib/NativeFileType.rb, line 32</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">type_description</span>
|
15
|
+
<span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">class</span>
|
16
|
+
<span class="ruby-keyword kw">end</span></pre>
|
17
|
+
</body>
|
18
|
+
</html>
|
@@ -0,0 +1,18 @@
|
|
1
|
+
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
+
<!DOCTYPE html
|
3
|
+
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
+
|
6
|
+
<html>
|
7
|
+
<head>
|
8
|
+
<title>load_address (NativeFileType)</title>
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
+
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
11
|
+
</head>
|
12
|
+
<body class="standalone-code">
|
13
|
+
<pre><span class="ruby-comment cmt"># File lib/NativeFileType.rb, line 36</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">load_address</span>
|
15
|
+
<span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">class</span>.<span class="ruby-identifier">load_address</span>(<span class="ruby-identifier">contents</span>)
|
16
|
+
<span class="ruby-keyword kw">end</span></pre>
|
17
|
+
</body>
|
18
|
+
</html>
|
@@ -0,0 +1,18 @@
|
|
1
|
+
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
+
<!DOCTYPE html
|
3
|
+
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
+
|
6
|
+
<html>
|
7
|
+
<head>
|
8
|
+
<title>load_address (NativeFileType)</title>
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
+
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
11
|
+
</head>
|
12
|
+
<body class="standalone-code">
|
13
|
+
<pre><span class="ruby-comment cmt"># File lib/NativeFileType.rb, line 40</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-constant">NativeFileType</span>.<span class="ruby-identifier">load_address</span>(<span class="ruby-identifier">filebytes</span>)
|
15
|
+
<span class="ruby-value">0</span>
|
16
|
+
<span class="ruby-keyword kw">end</span></pre>
|
17
|
+
</body>
|
18
|
+
</html>
|
@@ -0,0 +1,23 @@
|
|
1
|
+
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
+
<!DOCTYPE html
|
3
|
+
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
+
|
6
|
+
<html>
|
7
|
+
<head>
|
8
|
+
<title><=> (NativeFileType)</title>
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
+
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
11
|
+
</head>
|
12
|
+
<body class="standalone-code">
|
13
|
+
<pre><span class="ruby-comment cmt"># File lib/NativeFileType.rb, line 44</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-operator"><=></span>(<span class="ruby-identifier">o</span>)
|
15
|
+
<span class="ruby-keyword kw">return</span> <span class="ruby-value">-1</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">o</span>.<span class="ruby-identifier">respond_to?</span>(<span class="ruby-identifier">:filename</span>)
|
16
|
+
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">filename</span><span class="ruby-operator">==</span><span class="ruby-identifier">o</span>.<span class="ruby-identifier">filename</span> <span class="ruby-keyword kw">then</span>
|
17
|
+
<span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">to_s</span><span class="ruby-operator"><=></span><span class="ruby-identifier">o</span>.<span class="ruby-identifier">to_s</span>
|
18
|
+
<span class="ruby-keyword kw">else</span>
|
19
|
+
<span class="ruby-keyword kw">return</span> (<span class="ruby-identifier">filename</span><span class="ruby-operator"><=></span><span class="ruby-identifier">o</span>.<span class="ruby-identifier">filename</span>)
|
20
|
+
<span class="ruby-keyword kw">end</span>
|
21
|
+
<span class="ruby-keyword kw">end</span></pre>
|
22
|
+
</body>
|
23
|
+
</html>
|
@@ -0,0 +1,18 @@
|
|
1
|
+
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
+
<!DOCTYPE html
|
3
|
+
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
+
|
6
|
+
<html>
|
7
|
+
<head>
|
8
|
+
<title>to_hex_dump (NativeFileType)</title>
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
+
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
11
|
+
</head>
|
12
|
+
<body class="standalone-code">
|
13
|
+
<pre><span class="ruby-comment cmt"># File lib/NativeFileType.rb, line 53</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_hex_dump</span>
|
15
|
+
<span class="ruby-identifier">file_system_image</span>.<span class="ruby-identifier">file_system</span>.<span class="ruby-identifier">host_system</span>.<span class="ruby-identifier">hex_dump</span>(<span class="ruby-identifier">contents</span>)
|
16
|
+
<span class="ruby-keyword kw">end</span></pre>
|
17
|
+
</body>
|
18
|
+
</html>
|
@@ -0,0 +1,18 @@
|
|
1
|
+
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
+
<!DOCTYPE html
|
3
|
+
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
+
|
6
|
+
<html>
|
7
|
+
<head>
|
8
|
+
<title>full_filename (NativeFileType)</title>
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
+
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
11
|
+
</head>
|
12
|
+
<body class="standalone-code">
|
13
|
+
<pre><span class="ruby-comment cmt"># File lib/NativeFileType.rb, line 60</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">full_filename</span>
|
15
|
+
<span class="ruby-ivar">@filename</span>
|
16
|
+
<span class="ruby-keyword kw">end</span></pre>
|
17
|
+
</body>
|
18
|
+
</html>
|
@@ -0,0 +1,24 @@
|
|
1
|
+
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
+
<!DOCTYPE html
|
3
|
+
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
+
|
6
|
+
<html>
|
7
|
+
<head>
|
8
|
+
<title>== (NativeFileType)</title>
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
+
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
11
|
+
</head>
|
12
|
+
<body class="standalone-code">
|
13
|
+
<pre><span class="ruby-comment cmt"># File lib/NativeFileType.rb, line 64</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-operator">==</span>(<span class="ruby-identifier">other_object</span>)
|
15
|
+
<span class="ruby-keyword kw">if</span> <span class="ruby-operator">!</span><span class="ruby-identifier">other_object</span>.<span class="ruby-identifier">kind_of?</span> <span class="ruby-constant">NativeFileType</span> <span class="ruby-keyword kw">then</span>
|
16
|
+
<span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">false</span>
|
17
|
+
<span class="ruby-keyword kw">end</span>
|
18
|
+
<span class="ruby-keyword kw">if</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">filename!</span>=<span class="ruby-identifier">other_object</span>.<span class="ruby-identifier">filename</span> <span class="ruby-keyword kw">then</span>
|
19
|
+
<span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">false</span>
|
20
|
+
<span class="ruby-keyword kw">end</span>
|
21
|
+
<span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">to_s</span><span class="ruby-operator">==</span><span class="ruby-identifier">other_object</span>.<span class="ruby-identifier">to_s</span>
|
22
|
+
<span class="ruby-keyword kw">end</span></pre>
|
23
|
+
</body>
|
24
|
+
</html>
|
@@ -0,0 +1,41 @@
|
|
1
|
+
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
+
<!DOCTYPE html
|
3
|
+
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
+
|
6
|
+
<html>
|
7
|
+
<head>
|
8
|
+
<title>best_fit (NativeFileType)</title>
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
+
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
11
|
+
</head>
|
12
|
+
<body class="standalone-code">
|
13
|
+
<pre><span class="ruby-comment cmt"># File lib/NativeFileType.rb, line 76</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-constant">NativeFileType</span>.<span class="ruby-identifier">best_fit</span>(<span class="ruby-identifier">file_system_image</span>,<span class="ruby-identifier">filename</span>,<span class="ruby-identifier">contents</span>,<span class="ruby-identifier">file_type</span>=<span class="ruby-keyword kw">nil</span>,<span class="ruby-identifier">aux_code</span>=<span class="ruby-keyword kw">nil</span>)
|
15
|
+
<span class="ruby-identifier">candidates</span>={}
|
16
|
+
<span class="ruby-constant">NativeFileType</span>.<span class="ruby-identifier">all_native_file_types</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">native_file_type</span><span class="ruby-operator">|</span>
|
17
|
+
<span class="ruby-keyword kw">if</span> <span class="ruby-operator">!</span><span class="ruby-identifier">native_file_type</span>.<span class="ruby-identifier">file_system_file_types</span>.<span class="ruby-identifier">keys</span>.<span class="ruby-identifier">include?</span>(<span class="ruby-identifier">file_system_image</span>.<span class="ruby-identifier">file_system</span>) <span class="ruby-keyword kw">then</span>
|
18
|
+
<span class="ruby-constant">RipXploreLog</span>.<span class="ruby-identifier">debug</span>(<span class="ruby-node">"skipping #{native_file_type} - can't reside on #{file_system_image.file_system}"</span>)
|
19
|
+
<span class="ruby-keyword kw">else</span>
|
20
|
+
<span class="ruby-constant">RipXploreLog</span>.<span class="ruby-identifier">debug</span>(<span class="ruby-node">"checking native file type #{native_file_type}"</span>)
|
21
|
+
<span class="ruby-identifier">candidate_score</span>=<span class="ruby-identifier">native_file_type</span>.<span class="ruby-identifier">compatability_score</span>(<span class="ruby-identifier">file_system_image</span>,<span class="ruby-identifier">filename</span>,<span class="ruby-identifier">contents</span>,<span class="ruby-identifier">file_type</span>,<span class="ruby-identifier">aux_code</span>)
|
22
|
+
<span class="ruby-constant">RipXploreLog</span>.<span class="ruby-identifier">debug</span>(<span class="ruby-node">"score - #{candidate_score}"</span>)
|
23
|
+
<span class="ruby-identifier">candidates</span>[<span class="ruby-identifier">native_file_type</span>]=<span class="ruby-identifier">candidate_score</span>
|
24
|
+
<span class="ruby-keyword kw">end</span>
|
25
|
+
<span class="ruby-keyword kw">end</span>
|
26
|
+
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">candidates</span>.<span class="ruby-identifier">length</span><span class="ruby-operator">==</span><span class="ruby-value">0</span> <span class="ruby-keyword kw">then</span>
|
27
|
+
<span class="ruby-constant">RipXploreLog</span>.<span class="ruby-identifier">debug</span>( <span class="ruby-value str">'no valid combination of file system and native file types found'</span>)
|
28
|
+
<span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">nil</span>
|
29
|
+
<span class="ruby-keyword kw">end</span>
|
30
|
+
<span class="ruby-identifier">best_candidate</span>=<span class="ruby-identifier">candidates</span>.<span class="ruby-identifier">keys</span>.<span class="ruby-identifier">sort</span>{<span class="ruby-operator">|</span><span class="ruby-identifier">a</span>,<span class="ruby-identifier">b</span><span class="ruby-operator">|</span> <span class="ruby-identifier">candidates</span>[<span class="ruby-identifier">b</span>]<span class="ruby-operator"><=></span><span class="ruby-identifier">candidates</span>[<span class="ruby-identifier">a</span>]}[<span class="ruby-value">0</span>]
|
31
|
+
<span class="ruby-constant">RipXploreLog</span>.<span class="ruby-identifier">debug</span>(<span class="ruby-node">"best candidate for #{filename} = #{best_candidate} score: #{candidates[best_candidate]}"</span>)
|
32
|
+
<span class="ruby-identifier">native_file</span>=<span class="ruby-identifier">best_candidate</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">file_system_image</span>,<span class="ruby-identifier">filename</span>,<span class="ruby-identifier">contents</span>,<span class="ruby-identifier">file_type</span>,<span class="ruby-identifier">aux_code</span>)
|
33
|
+
<span class="ruby-keyword kw">if</span> <span class="ruby-constant">GenericGIF</span>.<span class="ruby-identifier">is_gif?</span>(<span class="ruby-identifier">native_file</span>) <span class="ruby-keyword kw">then</span>
|
34
|
+
<span class="ruby-constant">RipXploreLog</span>.<span class="ruby-identifier">debug</span>(<span class="ruby-node">" #{filename} is a GIF"</span>)
|
35
|
+
<span class="ruby-identifier">native_file</span>.<span class="ruby-identifier">extend</span> <span class="ruby-constant">GenericGIF</span>
|
36
|
+
<span class="ruby-keyword kw">end</span>
|
37
|
+
|
38
|
+
<span class="ruby-identifier">native_file</span>
|
39
|
+
<span class="ruby-keyword kw">end</span></pre>
|
40
|
+
</body>
|
41
|
+
</html>
|
@@ -0,0 +1,24 @@
|
|
1
|
+
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
+
<!DOCTYPE html
|
3
|
+
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
+
|
6
|
+
<html>
|
7
|
+
<head>
|
8
|
+
<title>file_type_matches? (NativeFileType)</title>
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
+
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
11
|
+
</head>
|
12
|
+
<body class="standalone-code">
|
13
|
+
<pre><span class="ruby-comment cmt"># File lib/NativeFileType.rb, line 104</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-constant">NativeFileType</span>.<span class="ruby-identifier">file_type_matches?</span>(<span class="ruby-identifier">file_system_image</span>,<span class="ruby-identifier">file_type</span>)
|
15
|
+
<span class="ruby-identifier">result</span>=<span class="ruby-keyword kw">false</span>
|
16
|
+
[<span class="ruby-identifier">file_system_file_types</span>[<span class="ruby-identifier">file_system_image</span>.<span class="ruby-identifier">file_system</span>]].<span class="ruby-identifier">flatten</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">target_file_type</span><span class="ruby-operator">|</span>
|
17
|
+
<span class="ruby-identifier">result</span>=<span class="ruby-keyword kw">true</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">target_file_type</span><span class="ruby-operator">==</span><span class="ruby-identifier">:any</span>
|
18
|
+
<span class="ruby-identifier">result</span>=<span class="ruby-keyword kw">true</span> <span class="ruby-keyword kw">if</span>(<span class="ruby-identifier">file_type</span>.<span class="ruby-identifier">to_s</span><span class="ruby-operator">==</span><span class="ruby-identifier">target_file_type</span>.<span class="ruby-identifier">to_s</span>)
|
19
|
+
<span class="ruby-constant">RipXploreLog</span>.<span class="ruby-identifier">debug</span> <span class="ruby-node">"test for #{file_type} == #{target_file_type} : #{result}"</span>
|
20
|
+
<span class="ruby-keyword kw">end</span>
|
21
|
+
<span class="ruby-identifier">result</span>
|
22
|
+
<span class="ruby-keyword kw">end</span></pre>
|
23
|
+
</body>
|
24
|
+
</html>
|
@@ -0,0 +1,18 @@
|
|
1
|
+
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
+
<!DOCTYPE html
|
3
|
+
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
+
|
6
|
+
<html>
|
7
|
+
<head>
|
8
|
+
<title>header_length (NativeFileType)</title>
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
+
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
11
|
+
</head>
|
12
|
+
<body class="standalone-code">
|
13
|
+
<pre><span class="ruby-comment cmt"># File lib/NativeFileType.rb, line 115</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">header_length</span>
|
15
|
+
<span class="ruby-value">0</span>
|
16
|
+
<span class="ruby-keyword kw">end</span></pre>
|
17
|
+
</body>
|
18
|
+
</html>
|
@@ -0,0 +1,18 @@
|
|
1
|
+
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
+
<!DOCTYPE html
|
3
|
+
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
+
|
6
|
+
<html>
|
7
|
+
<head>
|
8
|
+
<title>data_without_header (NativeFileType)</title>
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
+
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
11
|
+
</head>
|
12
|
+
<body class="standalone-code">
|
13
|
+
<pre><span class="ruby-comment cmt"># File lib/NativeFileType.rb, line 119</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">data_without_header</span>
|
15
|
+
<span class="ruby-ivar">@contents</span>[<span class="ruby-identifier">header_length</span>,<span class="ruby-ivar">@contents</span>.<span class="ruby-identifier">length</span><span class="ruby-operator">-</span><span class="ruby-identifier">header_length</span>]
|
16
|
+
<span class="ruby-keyword kw">end</span></pre>
|
17
|
+
</body>
|
18
|
+
</html>
|
@@ -0,0 +1,18 @@
|
|
1
|
+
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
+
<!DOCTYPE html
|
3
|
+
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
+
|
6
|
+
<html>
|
7
|
+
<head>
|
8
|
+
<title>code_for_tests (NativeFileType)</title>
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
+
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
11
|
+
</head>
|
12
|
+
<body class="standalone-code">
|
13
|
+
<pre><span class="ruby-comment cmt"># File lib/NativeFileType.rb, line 124</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">code_for_tests</span>
|
15
|
+
<span class="ruby-ivar">@@code_for_tests</span>[<span class="ruby-keyword kw">self</span>] <span class="ruby-operator">||</span> []
|
16
|
+
<span class="ruby-keyword kw">end</span></pre>
|
17
|
+
</body>
|
18
|
+
</html>
|
@@ -0,0 +1,20 @@
|
|
1
|
+
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
+
<!DOCTYPE html
|
3
|
+
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
+
|
6
|
+
<html>
|
7
|
+
<head>
|
8
|
+
<title>is_valid_file_if (NativeFileType)</title>
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
+
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
11
|
+
</head>
|
12
|
+
<body class="standalone-code">
|
13
|
+
<pre><span class="ruby-comment cmt"># File lib/NativeFileType.rb, line 128</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">is_valid_file_if</span>(<span class="ruby-identifier">code_for_test</span>)
|
15
|
+
<span class="ruby-comment cmt">#RipXploreLog.debug "adding test for #{self}: #{code_for_test.source}"</span>
|
16
|
+
<span class="ruby-ivar">@@code_for_tests</span>[<span class="ruby-keyword kw">self</span>] <span class="ruby-operator">||=</span>[]
|
17
|
+
<span class="ruby-ivar">@@code_for_tests</span>[<span class="ruby-keyword kw">self</span>]<span class="ruby-operator"><<</span><span class="ruby-identifier">code_for_test</span>.<span class="ruby-identifier">source</span>
|
18
|
+
<span class="ruby-keyword kw">end</span></pre>
|
19
|
+
</body>
|
20
|
+
</html>
|
@@ -0,0 +1,28 @@
|
|
1
|
+
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
+
<!DOCTYPE html
|
3
|
+
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
+
|
6
|
+
<html>
|
7
|
+
<head>
|
8
|
+
<title>compatability_score (NativeFileType)</title>
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
+
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
11
|
+
</head>
|
12
|
+
<body class="standalone-code">
|
13
|
+
<pre><span class="ruby-comment cmt"># File lib/NativeFileType.rb, line 134</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">compatability_score</span>(<span class="ruby-identifier">file_system_image</span>,<span class="ruby-identifier">filename</span>,<span class="ruby-identifier">contents</span>,<span class="ruby-identifier">file_type</span>,<span class="ruby-identifier">aux_code</span>)
|
15
|
+
<span class="ruby-keyword kw">return</span> <span class="ruby-identifier">non_matching_score</span> <span class="ruby-keyword kw">unless</span> (<span class="ruby-identifier">file_type_matches?</span>(<span class="ruby-identifier">file_system_image</span>,<span class="ruby-identifier">file_type</span>))
|
16
|
+
<span class="ruby-identifier">load_address</span>=<span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">load_address</span>(<span class="ruby-identifier">contents</span>)
|
17
|
+
<span class="ruby-identifier">passed_tests</span>=<span class="ruby-value">0</span>
|
18
|
+
<span class="ruby-identifier">code_for_tests</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">code_for_test</span><span class="ruby-operator">|</span>
|
19
|
+
<span class="ruby-constant">RipXploreLog</span>.<span class="ruby-identifier">debug</span> <span class="ruby-node">"test for #{self} : #{code_for_test}"</span>
|
20
|
+
<span class="ruby-identifier">result</span> = <span class="ruby-identifier">eval</span> <span class="ruby-identifier">code_for_test</span>,<span class="ruby-identifier">binding</span>
|
21
|
+
<span class="ruby-constant">RipXploreLog</span>.<span class="ruby-identifier">debug</span> <span class="ruby-node">"RESULT: #{result}"</span>
|
22
|
+
<span class="ruby-keyword kw">return</span> <span class="ruby-identifier">non_matching_score</span> <span class="ruby-keyword kw">unless</span> (<span class="ruby-identifier">result</span>)
|
23
|
+
<span class="ruby-identifier">passed_tests</span><span class="ruby-operator">+=</span><span class="ruby-value">1</span>
|
24
|
+
<span class="ruby-keyword kw">end</span>
|
25
|
+
<span class="ruby-keyword kw">return</span> <span class="ruby-identifier">matching_score</span><span class="ruby-operator">+</span><span class="ruby-identifier">passed_tests</span>
|
26
|
+
<span class="ruby-keyword kw">end</span></pre>
|
27
|
+
</body>
|
28
|
+
</html>
|
@@ -55,8 +55,8 @@
|
|
55
55
|
<tr class="top-aligned-row">
|
56
56
|
<td><strong>In:</strong></td>
|
57
57
|
<td>
|
58
|
-
<a href="../files/lib/native_file_types/apple2/
|
59
|
-
lib/native_file_types/apple2/
|
58
|
+
<a href="../files/lib/native_file_types/apple2/PackedHiResPicFormats_rb.html">
|
59
|
+
lib/native_file_types/apple2/PackedHiResPicFormats.rb
|
60
60
|
</a>
|
61
61
|
<br />
|
62
62
|
</td>
|
@@ -82,7 +82,8 @@
|
|
82
82
|
|
83
83
|
<div id="description">
|
84
84
|
<p>
|
85
|
-
picture packed
|
85
|
+
picture packed in format first seen (by jonno) on a disk cracked by
|
86
|
+
"Association Of Broadcasting Crackers"
|
86
87
|
</p>
|
87
88
|
|
88
89
|
</div>
|
@@ -94,7 +95,7 @@ picture packed with "The Axe Packer"
|
|
94
95
|
<h3 class="section-bar">Methods</h3>
|
95
96
|
|
96
97
|
<div class="name-list">
|
97
|
-
<a href="#
|
98
|
+
<a href="#M000009">unpacked_picture_bytes</a>
|
98
99
|
</div>
|
99
100
|
</div>
|
100
101
|
|
@@ -116,12 +117,12 @@ picture packed with "The Axe Packer"
|
|
116
117
|
<div id="methods">
|
117
118
|
<h3 class="section-bar">Public Instance methods</h3>
|
118
119
|
|
119
|
-
<div id="method-
|
120
|
-
<a name="
|
120
|
+
<div id="method-M000009" class="method-detail">
|
121
|
+
<a name="M000009"></a>
|
121
122
|
|
122
123
|
<div class="method-heading">
|
123
|
-
<a href="PackedAppleDosPic.src/
|
124
|
-
onclick="popupCode('PackedAppleDosPic.src/
|
124
|
+
<a href="PackedAppleDosPic.src/M000009.html" target="Code" class="method-signature"
|
125
|
+
onclick="popupCode('PackedAppleDosPic.src/M000009.html');return false;">
|
125
126
|
<span class="method-name">unpacked_picture_bytes</span><span class="method-args">()</span>
|
126
127
|
</a>
|
127
128
|
</div>
|
@@ -0,0 +1,40 @@
|
|
1
|
+
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
+
<!DOCTYPE html
|
3
|
+
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
+
|
6
|
+
<html>
|
7
|
+
<head>
|
8
|
+
<title>unpacked_picture_bytes (PackedAppleDosPic)</title>
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
+
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
11
|
+
</head>
|
12
|
+
<body class="standalone-code">
|
13
|
+
<pre><span class="ruby-comment cmt"># File lib/native_file_types/apple2/PackedHiResPicFormats.rb, line 74</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">unpacked_picture_bytes</span>
|
15
|
+
<span class="ruby-identifier">packed_buffer</span>=<span class="ruby-identifier">data_without_header</span>
|
16
|
+
<span class="ruby-identifier">unpacked_buffer</span>=<span class="ruby-value str">"\000"</span><span class="ruby-operator">*</span><span class="ruby-value">8192</span>
|
17
|
+
<span class="ruby-identifier">in_p</span>=<span class="ruby-value">0</span>
|
18
|
+
<span class="ruby-identifier">out_p</span>=<span class="ruby-value">0</span>
|
19
|
+
<span class="ruby-keyword kw">while</span> <span class="ruby-identifier">out_p</span><span class="ruby-operator"><=</span><span class="ruby-value">8192</span> <span class="ruby-operator">&&</span> <span class="ruby-identifier">in_p</span><span class="ruby-operator"><</span><span class="ruby-identifier">packed_buffer</span>.<span class="ruby-identifier">length</span> <span class="ruby-keyword kw">do</span>
|
20
|
+
<span class="ruby-identifier">count_byte</span>=<span class="ruby-identifier">packed_buffer</span>[<span class="ruby-identifier">in_p</span>]
|
21
|
+
<span class="ruby-identifier">in_p</span><span class="ruby-operator">+=</span><span class="ruby-value">1</span>
|
22
|
+
<span class="ruby-keyword kw">if</span> (<span class="ruby-identifier">count_byte</span><span class="ruby-operator">>=</span><span class="ruby-value">0x80</span>) <span class="ruby-keyword kw">then</span>
|
23
|
+
(<span class="ruby-value">1</span><span class="ruby-operator">+</span>(<span class="ruby-identifier">count_byte</span> <span class="ruby-operator">&</span> <span class="ruby-value">0x7</span><span class="ruby-constant">F</span>)).<span class="ruby-identifier">times</span> <span class="ruby-keyword kw">do</span>
|
24
|
+
<span class="ruby-identifier">unpacked_buffer</span>[<span class="ruby-identifier">out_p</span>]=<span class="ruby-identifier">packed_buffer</span>[<span class="ruby-identifier">in_p</span>] <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">out_p</span><span class="ruby-operator">>=</span><span class="ruby-value">8192</span>
|
25
|
+
<span class="ruby-identifier">in_p</span><span class="ruby-operator">+=</span><span class="ruby-value">1</span>
|
26
|
+
<span class="ruby-identifier">out_p</span><span class="ruby-operator">+=</span><span class="ruby-value">1</span>
|
27
|
+
<span class="ruby-keyword kw">end</span>
|
28
|
+
<span class="ruby-keyword kw">else</span>
|
29
|
+
<span class="ruby-identifier">src_byte</span>=<span class="ruby-identifier">packed_buffer</span>[<span class="ruby-identifier">in_p</span>]
|
30
|
+
<span class="ruby-identifier">in_p</span><span class="ruby-operator">+=</span><span class="ruby-value">1</span>
|
31
|
+
(<span class="ruby-value">1</span><span class="ruby-operator">+</span><span class="ruby-identifier">count_byte</span>).<span class="ruby-identifier">times</span> <span class="ruby-keyword kw">do</span>
|
32
|
+
<span class="ruby-identifier">unpacked_buffer</span>[<span class="ruby-identifier">out_p</span>]=<span class="ruby-identifier">src_byte</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">out_p</span><span class="ruby-operator">>=</span><span class="ruby-value">8192</span>
|
33
|
+
<span class="ruby-identifier">out_p</span><span class="ruby-operator">+=</span><span class="ruby-value">1</span>
|
34
|
+
<span class="ruby-keyword kw">end</span>
|
35
|
+
<span class="ruby-keyword kw">end</span>
|
36
|
+
<span class="ruby-keyword kw">end</span>
|
37
|
+
<span class="ruby-identifier">unpacked_buffer</span>
|
38
|
+
<span class="ruby-keyword kw">end</span></pre>
|
39
|
+
</body>
|
40
|
+
</html>
|