1
Fork 0
mirror of https://github.com/Steffo99/lihzahrd.git synced 2024-11-22 16:14:23 +00:00
lihzahrd/docs/html/fileutils.html

340 lines
19 KiB
HTML
Raw Normal View History

2019-08-12 20:48:55 +00:00
<!DOCTYPE html>
<!--[if IE 8]><html class="no-js lt-ie9" lang="en" > <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" lang="en" > <!--<![endif]-->
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>lihzahrd.fileutils &mdash; lihzahrd documentation</title>
<script type="text/javascript" src="_static/js/modernizr.min.js"></script>
<script type="text/javascript" id="documentation_options" data-url_root="./" src="_static/documentation_options.js"></script>
2020-04-17 15:03:12 +00:00
<script src="_static/jquery.js"></script>
<script src="_static/underscore.js"></script>
<script src="_static/doctools.js"></script>
<script src="_static/language_data.js"></script>
2019-08-12 20:48:55 +00:00
<script type="text/javascript" src="_static/js/theme.js"></script>
<link rel="stylesheet" href="_static/css/theme.css" type="text/css" />
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />
2019-08-13 17:56:17 +00:00
<link rel="stylesheet" href="_static/lihzahrd.css" type="text/css" />
2019-08-12 20:48:55 +00:00
<link rel="index" title="Index" href="genindex.html" />
<link rel="search" title="Search" href="search.html" />
2019-08-13 17:56:17 +00:00
<link rel="next" title="lihzahrd.timer" href="timer.html" />
<link rel="prev" title="lihzahrd.errors" href="errors.html" />
2019-08-12 20:48:55 +00:00
</head>
<body class="wy-body-for-nav">
<div class="wy-grid-for-nav">
<nav data-toggle="wy-nav-shift" class="wy-nav-side">
<div class="wy-side-scroll">
<div class="wy-side-nav-search" >
<a href="index.html" class="icon icon-home"> lihzahrd
</a>
<div role="search">
<form id="rtd-search-form" class="wy-form" action="search.html" method="get">
<input type="text" name="q" placeholder="Search docs" />
<input type="hidden" name="check_keywords" value="yes" />
<input type="hidden" name="area" value="default" />
</form>
</div>
</div>
<div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="main navigation">
<ul class="current">
2019-08-13 17:56:17 +00:00
<li class="toctree-l1"><a class="reference internal" href="usage.html">Usage guide</a></li>
<li class="toctree-l1 current"><a class="reference internal" href="reference.html">API Reference</a><ul class="current">
<li class="toctree-l2"><a class="reference internal" href="world.html">lihzahrd.World</a></li>
<li class="toctree-l2"><a class="reference internal" href="chests.html">lihzahrd.chests</a></li>
<li class="toctree-l2"><a class="reference internal" href="header.html">lihzahrd.header</a></li>
<li class="toctree-l2"><a class="reference internal" href="npcs.html">lihzahrd.npcs</a></li>
<li class="toctree-l2"><a class="reference internal" href="pressureplates.html">lihzahrd.pressureplates</a></li>
<li class="toctree-l2"><a class="reference internal" href="signs.html">lihzahrd.signs</a></li>
<li class="toctree-l2"><a class="reference internal" href="tileentities.html">lihzahrd.tileentities</a></li>
<li class="toctree-l2"><a class="reference internal" href="tiles.html">lihzahrd.tiles</a></li>
<li class="toctree-l2"><a class="reference internal" href="townmanager.html">lihzahrd.townmanager</a></li>
<li class="toctree-l2"><a class="reference internal" href="errors.html">lihzahrd.errors</a></li>
<li class="toctree-l2 current"><a class="current reference internal" href="#">lihzahrd.fileutils</a><ul class="simple">
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="timer.html">lihzahrd.timer</a></li>
2019-08-12 20:48:55 +00:00
</ul>
</li>
</ul>
</div>
</div>
</nav>
<section data-toggle="wy-nav-shift" class="wy-nav-content-wrap">
<nav class="wy-nav-top" aria-label="top navigation">
<i data-toggle="wy-nav-top" class="fa fa-bars"></i>
<a href="index.html">lihzahrd</a>
</nav>
<div class="wy-nav-content">
<div class="rst-content">
<div role="navigation" aria-label="breadcrumbs navigation">
<ul class="wy-breadcrumbs">
<li><a href="index.html">Docs</a> &raquo;</li>
2019-08-13 17:56:17 +00:00
<li><a href="reference.html">API Reference</a> &raquo;</li>
2019-08-12 20:48:55 +00:00
<li>lihzahrd.fileutils</li>
<li class="wy-breadcrumbs-aside">
<a href="_sources/fileutils.rst.txt" rel="nofollow"> View page source</a>
</li>
</ul>
<hr/>
</div>
<div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
<div itemprop="articleBody">
<div class="section" id="lihzahrd-fileutils">
<h1>lihzahrd.fileutils<a class="headerlink" href="#lihzahrd-fileutils" title="Permalink to this headline"></a></h1>
<div class="toctree-wrapper compound">
</div>
2020-04-17 15:03:12 +00:00
<span class="target" id="module-lihzahrd.fileutils"></span><dl class="py class">
2019-08-12 20:48:55 +00:00
<dt id="lihzahrd.fileutils.FileReader">
2020-04-17 15:03:12 +00:00
<em class="property">class </em><code class="sig-prename descclassname">lihzahrd.fileutils.</code><code class="sig-name descname">FileReader</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">file</span></em><span class="sig-paren">)</span><a class="headerlink" href="#lihzahrd.fileutils.FileReader" title="Permalink to this definition"></a></dt>
<dd><dl class="py method">
2019-08-12 20:48:55 +00:00
<dt id="lihzahrd.fileutils.FileReader.bits">
2020-04-17 15:03:12 +00:00
<code class="sig-name descname">bits</code><span class="sig-paren">(</span><span class="sig-paren">)</span> &#x2192; Tuple<span class="p">[</span>lihzahrd.fileutils.filereader.FileReader.bool<span class="p">, </span>lihzahrd.fileutils.filereader.FileReader.bool<span class="p">, </span>lihzahrd.fileutils.filereader.FileReader.bool<span class="p">, </span>lihzahrd.fileutils.filereader.FileReader.bool<span class="p">, </span>lihzahrd.fileutils.filereader.FileReader.bool<span class="p">, </span>lihzahrd.fileutils.filereader.FileReader.bool<span class="p">, </span>lihzahrd.fileutils.filereader.FileReader.bool<span class="p">, </span>lihzahrd.fileutils.filereader.FileReader.bool<span class="p">]</span><a class="headerlink" href="#lihzahrd.fileutils.FileReader.bits" title="Permalink to this definition"></a></dt>
2019-08-12 20:48:55 +00:00
<dd></dd></dl>
2020-04-17 15:03:12 +00:00
<dl class="py method">
2019-08-12 20:48:55 +00:00
<dt id="lihzahrd.fileutils.FileReader.bool">
2020-04-17 15:03:12 +00:00
<code class="sig-name descname">bool</code><span class="sig-paren">(</span><span class="sig-paren">)</span> &#x2192; <a class="reference external" href="https://docs.python.org/3.7/library/functions.html#bool" title="(in Python v3.7)">bool</a><a class="headerlink" href="#lihzahrd.fileutils.FileReader.bool" title="Permalink to this definition"></a></dt>
2019-08-12 20:48:55 +00:00
<dd></dd></dl>
2020-04-17 15:03:12 +00:00
<dl class="py method">
2019-08-12 20:48:55 +00:00
<dt id="lihzahrd.fileutils.FileReader.datetime">
2020-04-17 15:03:12 +00:00
<code class="sig-name descname">datetime</code><span class="sig-paren">(</span><span class="sig-paren">)</span> &#x2192; <a class="reference external" href="https://docs.python.org/3.7/library/datetime.html#datetime.datetime" title="(in Python v3.7)">datetime.datetime</a><a class="headerlink" href="#lihzahrd.fileutils.FileReader.datetime" title="Permalink to this definition"></a></dt>
2019-08-12 20:48:55 +00:00
<dd></dd></dl>
2020-04-17 15:03:12 +00:00
<dl class="py method">
2019-08-12 20:48:55 +00:00
<dt id="lihzahrd.fileutils.FileReader.double">
2020-04-17 15:03:12 +00:00
<code class="sig-name descname">double</code><span class="sig-paren">(</span><span class="sig-paren">)</span> &#x2192; <a class="reference external" href="https://docs.python.org/3.7/library/functions.html#float" title="(in Python v3.7)">float</a><a class="headerlink" href="#lihzahrd.fileutils.FileReader.double" title="Permalink to this definition"></a></dt>
2019-08-12 20:48:55 +00:00
<dd></dd></dl>
2020-04-17 15:03:12 +00:00
<dl class="py method">
2019-08-12 20:48:55 +00:00
<dt id="lihzahrd.fileutils.FileReader.int1">
2020-04-17 15:03:12 +00:00
<code class="sig-name descname">int1</code><span class="sig-paren">(</span><span class="sig-paren">)</span> &#x2192; <a class="reference external" href="https://docs.python.org/3.7/library/functions.html#int" title="(in Python v3.7)">int</a><a class="headerlink" href="#lihzahrd.fileutils.FileReader.int1" title="Permalink to this definition"></a></dt>
2019-08-12 20:48:55 +00:00
<dd></dd></dl>
2020-04-17 15:03:12 +00:00
<dl class="py method">
2019-08-12 20:48:55 +00:00
<dt id="lihzahrd.fileutils.FileReader.int2">
2020-04-17 15:03:12 +00:00
<code class="sig-name descname">int2</code><span class="sig-paren">(</span><span class="sig-paren">)</span> &#x2192; <a class="reference external" href="https://docs.python.org/3.7/library/functions.html#int" title="(in Python v3.7)">int</a><a class="headerlink" href="#lihzahrd.fileutils.FileReader.int2" title="Permalink to this definition"></a></dt>
2019-08-12 20:48:55 +00:00
<dd></dd></dl>
2020-04-17 15:03:12 +00:00
<dl class="py method">
2019-08-12 20:48:55 +00:00
<dt id="lihzahrd.fileutils.FileReader.int4">
2020-04-17 15:03:12 +00:00
<code class="sig-name descname">int4</code><span class="sig-paren">(</span><span class="sig-paren">)</span> &#x2192; <a class="reference external" href="https://docs.python.org/3.7/library/functions.html#int" title="(in Python v3.7)">int</a><a class="headerlink" href="#lihzahrd.fileutils.FileReader.int4" title="Permalink to this definition"></a></dt>
2019-08-12 20:48:55 +00:00
<dd></dd></dl>
2020-04-17 15:03:12 +00:00
<dl class="py method">
2019-08-12 20:48:55 +00:00
<dt id="lihzahrd.fileutils.FileReader.int8">
2020-04-17 15:03:12 +00:00
<code class="sig-name descname">int8</code><span class="sig-paren">(</span><span class="sig-paren">)</span> &#x2192; <a class="reference external" href="https://docs.python.org/3.7/library/functions.html#int" title="(in Python v3.7)">int</a><a class="headerlink" href="#lihzahrd.fileutils.FileReader.int8" title="Permalink to this definition"></a></dt>
2019-08-12 20:48:55 +00:00
<dd></dd></dl>
2020-04-17 15:03:12 +00:00
<dl class="py method">
2019-08-12 20:48:55 +00:00
<dt id="lihzahrd.fileutils.FileReader.read_until">
2020-04-17 15:03:12 +00:00
<code class="sig-name descname">read_until</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">address</span><span class="p">:</span> <span class="n"><a class="reference external" href="https://docs.python.org/3.7/library/functions.html#int" title="(in Python v3.7)">int</a></span></em><span class="sig-paren">)</span> &#x2192; <a class="reference external" href="https://docs.python.org/3.7/library/stdtypes.html#bytearray" title="(in Python v3.7)">bytearray</a><a class="headerlink" href="#lihzahrd.fileutils.FileReader.read_until" title="Permalink to this definition"></a></dt>
2019-08-12 20:48:55 +00:00
<dd></dd></dl>
2020-04-17 15:03:12 +00:00
<dl class="py method">
2019-08-12 20:48:55 +00:00
<dt id="lihzahrd.fileutils.FileReader.rect">
<code class="sig-name descname">rect</code><span class="sig-paren">(</span><span class="sig-paren">)</span> &#x2192; lihzahrd.fileutils.rect.Rect<a class="headerlink" href="#lihzahrd.fileutils.FileReader.rect" title="Permalink to this definition"></a></dt>
<dd></dd></dl>
2020-04-17 15:03:12 +00:00
<dl class="py method">
2019-08-12 20:48:55 +00:00
<dt id="lihzahrd.fileutils.FileReader.single">
2020-04-17 15:03:12 +00:00
<code class="sig-name descname">single</code><span class="sig-paren">(</span><span class="sig-paren">)</span> &#x2192; <a class="reference external" href="https://docs.python.org/3.7/library/functions.html#float" title="(in Python v3.7)">float</a><a class="headerlink" href="#lihzahrd.fileutils.FileReader.single" title="Permalink to this definition"></a></dt>
2019-08-12 20:48:55 +00:00
<dd></dd></dl>
2020-04-17 15:03:12 +00:00
<dl class="py method">
2019-08-12 20:48:55 +00:00
<dt id="lihzahrd.fileutils.FileReader.skip_until">
2020-04-17 15:03:12 +00:00
<code class="sig-name descname">skip_until</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">address</span><span class="p">:</span> <span class="n"><a class="reference external" href="https://docs.python.org/3.7/library/functions.html#int" title="(in Python v3.7)">int</a></span></em><span class="sig-paren">)</span> &#x2192; <a class="reference external" href="https://docs.python.org/3.7/library/constants.html#None" title="(in Python v3.7)">None</a><a class="headerlink" href="#lihzahrd.fileutils.FileReader.skip_until" title="Permalink to this definition"></a></dt>
2019-08-12 20:48:55 +00:00
<dd></dd></dl>
2020-04-17 15:03:12 +00:00
<dl class="py method">
2019-08-12 20:48:55 +00:00
<dt id="lihzahrd.fileutils.FileReader.string">
2020-04-17 15:03:12 +00:00
<code class="sig-name descname">string</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">size</span><span class="o">=</span><span class="default_value">None</span></em><span class="sig-paren">)</span> &#x2192; <a class="reference external" href="https://docs.python.org/3.7/library/stdtypes.html#str" title="(in Python v3.7)">str</a><a class="headerlink" href="#lihzahrd.fileutils.FileReader.string" title="Permalink to this definition"></a></dt>
2019-08-12 20:48:55 +00:00
<dd></dd></dl>
2020-04-17 15:03:12 +00:00
<dl class="py method">
2019-08-12 20:48:55 +00:00
<dt id="lihzahrd.fileutils.FileReader.uint1">
2020-04-17 15:03:12 +00:00
<code class="sig-name descname">uint1</code><span class="sig-paren">(</span><span class="sig-paren">)</span> &#x2192; <a class="reference external" href="https://docs.python.org/3.7/library/functions.html#int" title="(in Python v3.7)">int</a><a class="headerlink" href="#lihzahrd.fileutils.FileReader.uint1" title="Permalink to this definition"></a></dt>
2019-08-12 20:48:55 +00:00
<dd></dd></dl>
2020-04-17 15:03:12 +00:00
<dl class="py method">
2019-08-12 20:48:55 +00:00
<dt id="lihzahrd.fileutils.FileReader.uint2">
2020-04-17 15:03:12 +00:00
<code class="sig-name descname">uint2</code><span class="sig-paren">(</span><span class="sig-paren">)</span> &#x2192; <a class="reference external" href="https://docs.python.org/3.7/library/functions.html#int" title="(in Python v3.7)">int</a><a class="headerlink" href="#lihzahrd.fileutils.FileReader.uint2" title="Permalink to this definition"></a></dt>
2019-08-12 20:48:55 +00:00
<dd></dd></dl>
2020-04-17 15:03:12 +00:00
<dl class="py method">
2019-08-12 20:48:55 +00:00
<dt id="lihzahrd.fileutils.FileReader.uint4">
2020-04-17 15:03:12 +00:00
<code class="sig-name descname">uint4</code><span class="sig-paren">(</span><span class="sig-paren">)</span> &#x2192; <a class="reference external" href="https://docs.python.org/3.7/library/functions.html#int" title="(in Python v3.7)">int</a><a class="headerlink" href="#lihzahrd.fileutils.FileReader.uint4" title="Permalink to this definition"></a></dt>
2019-08-12 20:48:55 +00:00
<dd></dd></dl>
2020-04-17 15:03:12 +00:00
<dl class="py method">
2019-08-12 20:48:55 +00:00
<dt id="lihzahrd.fileutils.FileReader.uint8">
2020-04-17 15:03:12 +00:00
<code class="sig-name descname">uint8</code><span class="sig-paren">(</span><span class="sig-paren">)</span> &#x2192; <a class="reference external" href="https://docs.python.org/3.7/library/functions.html#int" title="(in Python v3.7)">int</a><a class="headerlink" href="#lihzahrd.fileutils.FileReader.uint8" title="Permalink to this definition"></a></dt>
2019-08-12 20:48:55 +00:00
<dd></dd></dl>
2020-04-17 15:03:12 +00:00
<dl class="py method">
<dt id="lihzahrd.fileutils.FileReader.uleb128">
<code class="sig-name descname">uleb128</code><span class="sig-paren">(</span><span class="sig-paren">)</span> &#x2192; <a class="reference external" href="https://docs.python.org/3.7/library/functions.html#int" title="(in Python v3.7)">int</a><a class="headerlink" href="#lihzahrd.fileutils.FileReader.uleb128" title="Permalink to this definition"></a></dt>
<dd></dd></dl>
<dl class="py method">
2019-08-12 20:48:55 +00:00
<dt id="lihzahrd.fileutils.FileReader.uuid">
2020-04-17 15:03:12 +00:00
<code class="sig-name descname">uuid</code><span class="sig-paren">(</span><span class="sig-paren">)</span> &#x2192; <a class="reference external" href="https://docs.python.org/3.7/library/uuid.html#uuid.UUID" title="(in Python v3.7)">uuid.UUID</a><a class="headerlink" href="#lihzahrd.fileutils.FileReader.uuid" title="Permalink to this definition"></a></dt>
2019-08-12 20:48:55 +00:00
<dd></dd></dl>
</dd></dl>
2020-04-17 15:03:12 +00:00
<dl class="py class">
2019-08-12 20:48:55 +00:00
<dt id="lihzahrd.fileutils.Rect">
2020-04-17 15:03:12 +00:00
<em class="property">class </em><code class="sig-prename descclassname">lihzahrd.fileutils.</code><code class="sig-name descname">Rect</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">left</span></em>, <em class="sig-param"><span class="n">right</span></em>, <em class="sig-param"><span class="n">top</span></em>, <em class="sig-param"><span class="n">bottom</span></em><span class="sig-paren">)</span><a class="headerlink" href="#lihzahrd.fileutils.Rect" title="Permalink to this definition"></a></dt>
2019-08-12 20:48:55 +00:00
<dd></dd></dl>
2020-04-17 15:03:12 +00:00
<dl class="py class">
2019-08-12 20:48:55 +00:00
<dt id="lihzahrd.fileutils.Pointers">
2020-04-17 15:03:12 +00:00
<em class="property">class </em><code class="sig-prename descclassname">lihzahrd.fileutils.</code><code class="sig-name descname">Pointers</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">world_header</span><span class="p">:</span> <span class="n"><a class="reference external" href="https://docs.python.org/3.7/library/functions.html#int" title="(in Python v3.7)">int</a></span></em>, <em class="sig-param"><span class="n">world_tiles</span><span class="p">:</span> <span class="n"><a class="reference external" href="https://docs.python.org/3.7/library/functions.html#int" title="(in Python v3.7)">int</a></span></em>, <em class="sig-param"><span class="n">chests</span><span class="p">:</span> <span class="n"><a class="reference external" href="https://docs.python.org/3.7/library/functions.html#int" title="(in Python v3.7)">int</a></span></em>, <em class="sig-param"><span class="n">signs</span><span class="p">:</span> <span class="n"><a class="reference external" href="https://docs.python.org/3.7/library/functions.html#int" title="(in Python v3.7)">int</a></span></em>, <em class="sig-param"><span class="n">npcs</span><span class="p">:</span> <span class="n"><a class="reference external" href="https://docs.python.org/3.7/library/functions.html#int" title="(in Python v3.7)">int</a></span></em>, <em class="sig-param"><span class="n">tile_entities</span><span class="p">:</span> <span class="n"><a class="reference external" href="https://docs.python.org/3.7/library/functions.html#int" title="(in Python v3.7)">int</a></span></em>, <em class="sig-param"><span class="n">pressure_plates</span><span class="p">:</span> <span class="n"><a class="reference external" href="https://docs.python.org/3.7/library/functions.html#int" title="(in Python v3.7)">int</a></span></em>, <em class="sig-param"><span class="n">town_manager</span><span class="p">:</span> <span class="n"><a class="reference external" href="https://docs.python.org/3.7/library/functions.html#int" title="(in Python v3.7)">int</a></span></em>, <em class="sig-param"><span class="n">footer</span><span class="p">:</span> <span class="n"><a class="reference external" href="https://docs.python.org/3.7/library/functions.html#int" title="(in Python v3.7)">int</a></span></em>, <em class="sig-param"><span class="o">*</span><span class="n">unknown</span></em><span class="sig-paren">)</span><a class="headerlink" href="#lihzahrd.fileutils.Pointers" title="Permalink to this definition"></a></dt>
2019-08-12 20:48:55 +00:00
<dd></dd></dl>
2020-04-17 15:03:12 +00:00
<dl class="py class">
2019-08-12 20:48:55 +00:00
<dt id="lihzahrd.fileutils.Coordinates">
2020-04-17 15:03:12 +00:00
<em class="property">class </em><code class="sig-prename descclassname">lihzahrd.fileutils.</code><code class="sig-name descname">Coordinates</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">x</span></em>, <em class="sig-param"><span class="n">y</span></em><span class="sig-paren">)</span><a class="headerlink" href="#lihzahrd.fileutils.Coordinates" title="Permalink to this definition"></a></dt>
2019-08-12 20:48:55 +00:00
<dd><p>A pair of coordinates.</p>
</dd></dl>
</div>
</div>
</div>
<footer>
<div class="rst-footer-buttons" role="navigation" aria-label="footer navigation">
2019-08-13 17:56:17 +00:00
<a href="timer.html" class="btn btn-neutral float-right" title="lihzahrd.timer" accesskey="n" rel="next">Next <span class="fa fa-arrow-circle-right"></span></a>
2019-08-12 20:48:55 +00:00
2019-08-13 17:56:17 +00:00
<a href="errors.html" class="btn btn-neutral float-left" title="lihzahrd.errors" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left"></span> Previous</a>
2019-08-12 20:48:55 +00:00
</div>
<hr/>
<div role="contentinfo">
<p>
&copy; Copyright 2019, Stefano Pigozzi
</p>
</div>
Built with <a href="http://sphinx-doc.org/">Sphinx</a> using a <a href="https://github.com/rtfd/sphinx_rtd_theme">theme</a> provided by <a href="https://readthedocs.org">Read the Docs</a>.
</footer>
</div>
</div>
</section>
</div>
<script type="text/javascript">
jQuery(function () {
SphinxRtdTheme.Navigation.enable(true);
});
</script>
</body>
</html>