Skip to content

Commit

Permalink
added dmf size cap
Browse files Browse the repository at this point in the history
  • Loading branch information
minerscale committed Feb 17, 2018
1 parent c49fec4 commit ec35dab
Show file tree
Hide file tree
Showing 10 changed files with 43 additions and 39 deletions.
4 changes: 2 additions & 2 deletions docs/globals.html
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,8 @@
<li>openDMF()
: <a class="el" href="libdmf_8h.html#a8b87b643aebb86305aac9b29543ad2b0">libdmf.h</a>
</li>
<li>openFileIntoBuffer()
: <a class="el" href="libdmf_8h.html#a593d9dbc83facab07b817d8a0c65b3a1">libdmf.h</a>
<li>openDmfFileIntoBuffer()
: <a class="el" href="libdmf_8h.html#ae8dd002830fc02e1fe4885c9070060e3">libdmf.h</a>
</li>
<li>parseDMF()
: <a class="el" href="libdmf_8h.html#a8c491c848e6dbdc0d5d03ca92a143ca5">libdmf.h</a>
Expand Down
4 changes: 2 additions & 2 deletions docs/globals_func.html
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,8 @@
<li>openDMF()
: <a class="el" href="libdmf_8h.html#a8b87b643aebb86305aac9b29543ad2b0">libdmf.h</a>
</li>
<li>openFileIntoBuffer()
: <a class="el" href="libdmf_8h.html#a593d9dbc83facab07b817d8a0c65b3a1">libdmf.h</a>
<li>openDmfFileIntoBuffer()
: <a class="el" href="libdmf_8h.html#ae8dd002830fc02e1fe4885c9070060e3">libdmf.h</a>
</li>
<li>parseDMF()
: <a class="el" href="libdmf_8h.html#a8c491c848e6dbdc0d5d03ca92a143ca5">libdmf.h</a>
Expand Down
30 changes: 14 additions & 16 deletions docs/libdmf_8h.html
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,6 @@
Include dependency graph for libdmf.h:</div>
<div class="dyncontent">
<div class="center"><img src="libdmf_8h__incl.png" border="0" usemap="#libdmf_8h" alt=""/></div>
<map name="libdmf_8h" id="libdmf_8h">
</map>
</div>
</div>
<p><a href="libdmf_8h_source.html">Go to the source code of this file.</a></p>
Expand Down Expand Up @@ -183,26 +181,26 @@
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:a593d9dbc83facab07b817d8a0c65b3a1"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="libdmf_8h.html#a593d9dbc83facab07b817d8a0c65b3a1">openFileIntoBuffer</a> (char *filename, unsigned char *dest, size_t *length)</td></tr>
<tr class="memdesc:a593d9dbc83facab07b817d8a0c65b3a1"><td class="mdescLeft">&#160;</td><td class="mdescRight">Use a filename to open a file into a memory buffer. <a href="#a593d9dbc83facab07b817d8a0c65b3a1">More...</a><br /></td></tr>
<tr class="separator:a593d9dbc83facab07b817d8a0c65b3a1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae8dd002830fc02e1fe4885c9070060e3"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="libdmf_8h.html#ae8dd002830fc02e1fe4885c9070060e3">openDmfFileIntoBuffer</a> (char *filename, unsigned char *dest, size_t *length)</td></tr>
<tr class="memdesc:ae8dd002830fc02e1fe4885c9070060e3"><td class="mdescLeft">&#160;</td><td class="mdescRight">Use a filename to open a file into a memory buffer. <a href="#ae8dd002830fc02e1fe4885c9070060e3">More...</a><br /></td></tr>
<tr class="separator:ae8dd002830fc02e1fe4885c9070060e3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acd48aa95fce6905a0b0a68ca0dbb3f1e"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="libdmf_8h.html#acd48aa95fce6905a0b0a68ca0dbb3f1e">decompressDMF</a> (unsigned char *src, size_t src_length, unsigned char *dest)</td></tr>
<tr class="memdesc:acd48aa95fce6905a0b0a68ca0dbb3f1e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Takes buffer from <a class="el" href="libdmf_8h.html#a593d9dbc83facab07b817d8a0c65b3a1" title="Use a filename to open a file into a memory buffer. ">openFileIntoBuffer()</a> and decompresses it using miniz.h. <a href="#acd48aa95fce6905a0b0a68ca0dbb3f1e">More...</a><br /></td></tr>
<tr class="memdesc:acd48aa95fce6905a0b0a68ca0dbb3f1e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Takes buffer from <a class="el" href="libdmf_8h.html#ae8dd002830fc02e1fe4885c9070060e3" title="Use a filename to open a file into a memory buffer. ">openDmfFileIntoBuffer()</a> and decompresses it using miniz.h. <a href="#acd48aa95fce6905a0b0a68ca0dbb3f1e">More...</a><br /></td></tr>
<tr class="separator:acd48aa95fce6905a0b0a68ca0dbb3f1e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8b87b643aebb86305aac9b29543ad2b0"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="libdmf_8h.html#a8b87b643aebb86305aac9b29543ad2b0">openDMF</a> (char *filename, unsigned char *dest)</td></tr>
<tr class="memdesc:a8b87b643aebb86305aac9b29543ad2b0"><td class="mdescLeft">&#160;</td><td class="mdescRight">A combination of <a class="el" href="libdmf_8h.html#a593d9dbc83facab07b817d8a0c65b3a1" title="Use a filename to open a file into a memory buffer. ">openFileIntoBuffer()</a> and <a class="el" href="libdmf_8h.html#acd48aa95fce6905a0b0a68ca0dbb3f1e" title="Takes buffer from openFileIntoBuffer() and decompresses it using miniz.h. ">decompressDMF()</a> <a href="#a8b87b643aebb86305aac9b29543ad2b0">More...</a><br /></td></tr>
<tr class="memdesc:a8b87b643aebb86305aac9b29543ad2b0"><td class="mdescLeft">&#160;</td><td class="mdescRight">A combination of <a class="el" href="libdmf_8h.html#ae8dd002830fc02e1fe4885c9070060e3" title="Use a filename to open a file into a memory buffer. ">openDmfFileIntoBuffer()</a> and <a class="el" href="libdmf_8h.html#acd48aa95fce6905a0b0a68ca0dbb3f1e" title="Takes buffer from openDmfFileIntoBuffer() and decompresses it using miniz.h. ">decompressDMF()</a> <a href="#a8b87b643aebb86305aac9b29543ad2b0">More...</a><br /></td></tr>
<tr class="separator:a8b87b643aebb86305aac9b29543ad2b0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8c491c848e6dbdc0d5d03ca92a143ca5"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="libdmf_8h.html#a8c491c848e6dbdc0d5d03ca92a143ca5">parseDMF</a> (unsigned char *decompressed_dmf, <a class="el" href="structdmf.html">dmf</a> *dest)</td></tr>
<tr class="memdesc:a8c491c848e6dbdc0d5d03ca92a143ca5"><td class="mdescLeft">&#160;</td><td class="mdescRight">Parse an uncompressed buffer into the <a class="el" href="structdmf.html">dmf</a> type. <a href="#a8c491c848e6dbdc0d5d03ca92a143ca5">More...</a><br /></td></tr>
<tr class="separator:a8c491c848e6dbdc0d5d03ca92a143ca5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8dc6493cb0904df68e9465cdf886f728"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="libdmf_8h.html#a8dc6493cb0904df68e9465cdf886f728">fileToDmfType</a> (char *filename, <a class="el" href="structdmf.html">dmf</a> *dest)</td></tr>
<tr class="memdesc:a8dc6493cb0904df68e9465cdf886f728"><td class="mdescLeft">&#160;</td><td class="mdescRight">A combination of <a class="el" href="libdmf_8h.html#a8b87b643aebb86305aac9b29543ad2b0" title="A combination of openFileIntoBuffer() and decompressDMF() ">openDMF()</a> and <a class="el" href="libdmf_8h.html#a8c491c848e6dbdc0d5d03ca92a143ca5" title="Parse an uncompressed buffer into the dmf type. ">parseDMF()</a>. Takes a file and puts it int the <a class="el" href="structdmf.html">dmf</a> type. <a href="#a8dc6493cb0904df68e9465cdf886f728">More...</a><br /></td></tr>
<tr class="memdesc:a8dc6493cb0904df68e9465cdf886f728"><td class="mdescLeft">&#160;</td><td class="mdescRight">A combination of <a class="el" href="libdmf_8h.html#a8b87b643aebb86305aac9b29543ad2b0" title="A combination of openDmfFileIntoBuffer() and decompressDMF() ">openDMF()</a> and <a class="el" href="libdmf_8h.html#a8c491c848e6dbdc0d5d03ca92a143ca5" title="Parse an uncompressed buffer into the dmf type. ">parseDMF()</a>. Takes a file and puts it int the <a class="el" href="structdmf.html">dmf</a> type. <a href="#a8dc6493cb0904df68e9465cdf886f728">More...</a><br /></td></tr>
<tr class="separator:a8dc6493cb0904df68e9465cdf886f728"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af3d888d968415a8b9176198c0dcb9d48"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="libdmf_8h.html#af3d888d968415a8b9176198c0dcb9d48">dmfToBuffer</a> (<a class="el" href="structdmf.html">dmf</a> src, unsigned char *dest, size_t *size)</td></tr>
<tr class="memdesc:af3d888d968415a8b9176198c0dcb9d48"><td class="mdescLeft">&#160;</td><td class="mdescRight">The opposite of <a class="el" href="libdmf_8h.html#a8c491c848e6dbdc0d5d03ca92a143ca5" title="Parse an uncompressed buffer into the dmf type. ">parseDMF()</a>. Converts <a class="el" href="structdmf.html">dmf</a> type to uncompressed dmf file. <a href="#af3d888d968415a8b9176198c0dcb9d48">More...</a><br /></td></tr>
<tr class="separator:af3d888d968415a8b9176198c0dcb9d48"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4029eb315242eef6ea48e2c5395ec783"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="libdmf_8h.html#a4029eb315242eef6ea48e2c5395ec783">compressDMF</a> (const unsigned char *src, size_t src_length, unsigned char *dest, size_t *dest_length)</td></tr>
<tr class="memdesc:a4029eb315242eef6ea48e2c5395ec783"><td class="mdescLeft">&#160;</td><td class="mdescRight">The opposite of <a class="el" href="libdmf_8h.html#acd48aa95fce6905a0b0a68ca0dbb3f1e" title="Takes buffer from openFileIntoBuffer() and decompresses it using miniz.h. ">decompressDMF()</a>. Converts an uncompressed buffer to a compressed buffer. <a href="#a4029eb315242eef6ea48e2c5395ec783">More...</a><br /></td></tr>
<tr class="memdesc:a4029eb315242eef6ea48e2c5395ec783"><td class="mdescLeft">&#160;</td><td class="mdescRight">The opposite of <a class="el" href="libdmf_8h.html#acd48aa95fce6905a0b0a68ca0dbb3f1e" title="Takes buffer from openDmfFileIntoBuffer() and decompresses it using miniz.h. ">decompressDMF()</a>. Converts an uncompressed buffer to a compressed buffer. <a href="#a4029eb315242eef6ea48e2c5395ec783">More...</a><br /></td></tr>
<tr class="separator:a4029eb315242eef6ea48e2c5395ec783"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a19b9fe2d630621947c842d71c2ae762a"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="libdmf_8h.html#a19b9fe2d630621947c842d71c2ae762a">writeDMF</a> (char *filename, <a class="el" href="structdmf.html">dmf</a> src)</td></tr>
<tr class="memdesc:a19b9fe2d630621947c842d71c2ae762a"><td class="mdescLeft">&#160;</td><td class="mdescRight">A combination of <a class="el" href="libdmf_8h.html#a4029eb315242eef6ea48e2c5395ec783" title="The opposite of decompressDMF(). Converts an uncompressed buffer to a compressed buffer. ">compressDMF()</a> and <a class="el" href="libdmf_8h.html#af3d888d968415a8b9176198c0dcb9d48" title="The opposite of parseDMF(). Converts dmf type to uncompressed dmf file. ">dmfToBuffer()</a>. Converts <a class="el" href="structdmf.html">dmf</a> type to compressed buffer and writes it to file. <a href="#a19b9fe2d630621947c842d71c2ae762a">More...</a><br /></td></tr>
Expand Down Expand Up @@ -255,7 +253,7 @@ <h2 class="memtitle"><span class="permalink"><a href="#a4029eb315242eef6ea48e2c5
</table>
</div><div class="memdoc">

<p>The opposite of <a class="el" href="libdmf_8h.html#acd48aa95fce6905a0b0a68ca0dbb3f1e" title="Takes buffer from openFileIntoBuffer() and decompresses it using miniz.h. ">decompressDMF()</a>. Converts an uncompressed buffer to a compressed buffer. </p>
<p>The opposite of <a class="el" href="libdmf_8h.html#acd48aa95fce6905a0b0a68ca0dbb3f1e" title="Takes buffer from openDmfFileIntoBuffer() and decompresses it using miniz.h. ">decompressDMF()</a>. Converts an uncompressed buffer to a compressed buffer. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">src</td><td>The source buffer. </td></tr>
Expand Down Expand Up @@ -300,7 +298,7 @@ <h2 class="memtitle"><span class="permalink"><a href="#acd48aa95fce6905a0b0a68ca
</table>
</div><div class="memdoc">

<p>Takes buffer from <a class="el" href="libdmf_8h.html#a593d9dbc83facab07b817d8a0c65b3a1" title="Use a filename to open a file into a memory buffer. ">openFileIntoBuffer()</a> and decompresses it using miniz.h. </p>
<p>Takes buffer from <a class="el" href="libdmf_8h.html#ae8dd002830fc02e1fe4885c9070060e3" title="Use a filename to open a file into a memory buffer. ">openDmfFileIntoBuffer()</a> and decompresses it using miniz.h. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">src</td><td>The source buffer. </td></tr>
Expand Down Expand Up @@ -408,7 +406,7 @@ <h2 class="memtitle"><span class="permalink"><a href="#a8dc6493cb0904df68e9465cd
</table>
</div><div class="memdoc">

<p>A combination of <a class="el" href="libdmf_8h.html#a8b87b643aebb86305aac9b29543ad2b0" title="A combination of openFileIntoBuffer() and decompressDMF() ">openDMF()</a> and <a class="el" href="libdmf_8h.html#a8c491c848e6dbdc0d5d03ca92a143ca5" title="Parse an uncompressed buffer into the dmf type. ">parseDMF()</a>. Takes a file and puts it int the <a class="el" href="structdmf.html">dmf</a> type. </p>
<p>A combination of <a class="el" href="libdmf_8h.html#a8b87b643aebb86305aac9b29543ad2b0" title="A combination of openDmfFileIntoBuffer() and decompressDMF() ">openDMF()</a> and <a class="el" href="libdmf_8h.html#a8c491c848e6dbdc0d5d03ca92a143ca5" title="Parse an uncompressed buffer into the dmf type. ">parseDMF()</a>. Takes a file and puts it int the <a class="el" href="structdmf.html">dmf</a> type. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">filename</td><td>The path to the file to open. </td></tr>
Expand Down Expand Up @@ -445,7 +443,7 @@ <h2 class="memtitle"><span class="permalink"><a href="#a8b87b643aebb86305aac9b29
</table>
</div><div class="memdoc">

<p>A combination of <a class="el" href="libdmf_8h.html#a593d9dbc83facab07b817d8a0c65b3a1" title="Use a filename to open a file into a memory buffer. ">openFileIntoBuffer()</a> and <a class="el" href="libdmf_8h.html#acd48aa95fce6905a0b0a68ca0dbb3f1e" title="Takes buffer from openFileIntoBuffer() and decompresses it using miniz.h. ">decompressDMF()</a> </p>
<p>A combination of <a class="el" href="libdmf_8h.html#ae8dd002830fc02e1fe4885c9070060e3" title="Use a filename to open a file into a memory buffer. ">openDmfFileIntoBuffer()</a> and <a class="el" href="libdmf_8h.html#acd48aa95fce6905a0b0a68ca0dbb3f1e" title="Takes buffer from openDmfFileIntoBuffer() and decompresses it using miniz.h. ">decompressDMF()</a> </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">filename</td><td>The path to the file to open. </td></tr>
Expand All @@ -456,14 +454,14 @@ <h2 class="memtitle"><span class="permalink"><a href="#a8b87b643aebb86305aac9b29

</div>
</div>
<a id="a593d9dbc83facab07b817d8a0c65b3a1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a593d9dbc83facab07b817d8a0c65b3a1">&#9670;&nbsp;</a></span>openFileIntoBuffer()</h2>
<a id="ae8dd002830fc02e1fe4885c9070060e3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae8dd002830fc02e1fe4885c9070060e3">&#9670;&nbsp;</a></span>openDmfFileIntoBuffer()</h2>

<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int openFileIntoBuffer </td>
<td class="memname">int openDmfFileIntoBuffer </td>
<td>(</td>
<td class="paramtype">char *&#160;</td>
<td class="paramname"><em>filename</em>, </td>
Expand Down
2 changes: 1 addition & 1 deletion docs/libdmf_8h.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ var libdmf_8h =
[ "dmfToBuffer", "libdmf_8h.html#af3d888d968415a8b9176198c0dcb9d48", null ],
[ "fileToDmfType", "libdmf_8h.html#a8dc6493cb0904df68e9465cdf886f728", null ],
[ "openDMF", "libdmf_8h.html#a8b87b643aebb86305aac9b29543ad2b0", null ],
[ "openFileIntoBuffer", "libdmf_8h.html#a593d9dbc83facab07b817d8a0c65b3a1", null ],
[ "openDmfFileIntoBuffer", "libdmf_8h.html#ae8dd002830fc02e1fe4885c9070060e3", null ],
[ "parseDMF", "libdmf_8h.html#a8c491c848e6dbdc0d5d03ca92a143ca5", null ],
[ "verify_dmf", "libdmf_8h.html#aa3d8a22fa5f32dcaa7be8678adf0e25e", null ],
[ "writeDMF", "libdmf_8h.html#a19b9fe2d630621947c842d71c2ae762a", null ]
Expand Down
18 changes: 9 additions & 9 deletions docs/libdmf_8h_source.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/navtreeindex0.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ var NAVTREEINDEX0 =
"libdmf_8h.html#a46befaec21d3091b4530cdf8a6f93c55":[1,0,0,9],
"libdmf_8h.html#a46cabfba470685604bcf50a3aa902b0d":[1,0,0,13],
"libdmf_8h.html#a558a44697e362623eef3d58f0fb958f5":[1,0,0,24],
"libdmf_8h.html#a593d9dbc83facab07b817d8a0c65b3a1":[1,0,0,28],
"libdmf_8h.html#a86d4123be204c91cbe1f4d3ad71b75f3":[1,0,0,20],
"libdmf_8h.html#a8b87b643aebb86305aac9b29543ad2b0":[1,0,0,27],
"libdmf_8h.html#a8c491c848e6dbdc0d5d03ca92a143ca5":[1,0,0,29],
Expand All @@ -32,6 +31,7 @@ var NAVTREEINDEX0 =
"libdmf_8h.html#aa3d8a22fa5f32dcaa7be8678adf0e25e":[1,0,0,30],
"libdmf_8h.html#acd48aa95fce6905a0b0a68ca0dbb3f1e":[1,0,0,23],
"libdmf_8h.html#ad009cf3376c5974e17dd0fcc2ac02185":[1,0,0,14],
"libdmf_8h.html#ae8dd002830fc02e1fe4885c9070060e3":[1,0,0,28],
"libdmf_8h.html#aed23f181e4022e673edde862809ff925":[1,0,0,12],
"libdmf_8h.html#af3d888d968415a8b9176198c0dcb9d48":[1,0,0,25],
"libdmf_8h_source.html":[1,0,0],
Expand Down
2 changes: 1 addition & 1 deletion docs/search/all_c.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ var searchData=
[
['octave',['octave',['../structnote__row.html#a9ceb4dde74d6c64fa6a0519f7564f39d',1,'note_row']]],
['opendmf',['openDMF',['../libdmf_8h.html#a8b87b643aebb86305aac9b29543ad2b0',1,'dmfParser.c']]],
['openfileintobuffer',['openFileIntoBuffer',['../libdmf_8h.html#a593d9dbc83facab07b817d8a0c65b3a1',1,'dmfParser.c']]]
['opendmffileintobuffer',['openDmfFileIntoBuffer',['../libdmf_8h.html#ae8dd002830fc02e1fe4885c9070060e3',1,'dmfParser.c']]]
];
2 changes: 1 addition & 1 deletion docs/search/functions_3.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
var searchData=
[
['opendmf',['openDMF',['../libdmf_8h.html#a8b87b643aebb86305aac9b29543ad2b0',1,'dmfParser.c']]],
['openfileintobuffer',['openFileIntoBuffer',['../libdmf_8h.html#a593d9dbc83facab07b817d8a0c65b3a1',1,'dmfParser.c']]]
['opendmffileintobuffer',['openDmfFileIntoBuffer',['../libdmf_8h.html#ae8dd002830fc02e1fe4885c9070060e3',1,'dmfParser.c']]]
];
8 changes: 4 additions & 4 deletions inc/libdmf.h
Original file line number Diff line number Diff line change
Expand Up @@ -225,8 +225,8 @@ typedef struct {
sample *samples; //!< Actual sample data
} dmf;

int openFileIntoBuffer(char *filename, unsigned char *dest, size_t *length);
/*! \fn int openFileIntoBuffer(char *filename, unsigned char *dest, size_t *length)
int openDmfFileIntoBuffer(char *filename, unsigned char *dest, size_t *length);
/*! \fn int openDmfFileIntoBuffer(char *filename, unsigned char *dest, size_t *length)
\brief Use a filename to open a file into a memory buffer.
\param filename The path to the file to open.
\param dest The buffer write to.
Expand All @@ -235,15 +235,15 @@ int openFileIntoBuffer(char *filename, unsigned char *dest, size_t *length);

int decompressDMF(unsigned char *src, size_t src_length, unsigned char *dest);
/*! \fn int decompressDMF(unsigned char *src, size_t src_length, unsigned char *dest)
\brief Takes buffer from openFileIntoBuffer() and decompresses it using miniz.h
\brief Takes buffer from openDmfFileIntoBuffer() and decompresses it using miniz.h
\param src The source buffer.
\param src_length The length of the source buffer.
\param dest A destination buffers.
*/

int openDMF(char *filename, unsigned char *dest);
/*! \fn int openDMF(char *filename, unsigned char *dest)
\brief A combination of openFileIntoBuffer() and decompressDMF()
\brief A combination of openDmfFileIntoBuffer() and decompressDMF()
\param filename The path to the file to open.
\param dest The destination buffer.
*/
Expand Down
Loading

0 comments on commit ec35dab

Please sign in to comment.