mirror of
https://github.com/aaru-dps/libaaruformat.git
synced 2025-12-16 19:24:40 +00:00
343 lines
23 KiB
HTML
343 lines
23 KiB
HTML
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
|
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
|
|
<meta name="generator" content="Doxygen 1.14.0"/>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
|
<title>libaaruformat: src/crc64/crc64.c File Reference</title>
|
|
<link href="tabs.css" rel="stylesheet" type="text/css"/>
|
|
<script type="text/javascript" src="jquery.js"></script>
|
|
<script type="text/javascript" src="dynsections.js"></script>
|
|
<script type="text/javascript" src="clipboard.js"></script>
|
|
<link href="navtree.css" rel="stylesheet" type="text/css"/>
|
|
<script type="text/javascript" src="navtreedata.js"></script>
|
|
<script type="text/javascript" src="navtree.js"></script>
|
|
<script type="text/javascript" src="cookie.js"></script>
|
|
<link href="search/search.css" rel="stylesheet" type="text/css"/>
|
|
<script type="text/javascript" src="search/searchdata.js"></script>
|
|
<script type="text/javascript" src="search/search.js"></script>
|
|
<link href="doxygen.css" rel="stylesheet" type="text/css" />
|
|
</head>
|
|
<body>
|
|
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
|
|
<div id="titlearea">
|
|
<table cellspacing="0" cellpadding="0">
|
|
<tbody>
|
|
<tr id="projectrow">
|
|
<td id="projectalign">
|
|
<div id="projectname">libaaruformat<span id="projectnumber"> 1.0</span>
|
|
</div>
|
|
<div id="projectbrief">Aaru Data Preservation Suite - Format Library</div>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<!-- end header part -->
|
|
<!-- Generated by Doxygen 1.14.0 -->
|
|
<script type="text/javascript">
|
|
var searchBox = new SearchBox("searchBox", "search/",'.html');
|
|
</script>
|
|
<script type="text/javascript">
|
|
$(function() { codefold.init(); });
|
|
</script>
|
|
<script type="text/javascript" src="menudata.js"></script>
|
|
<script type="text/javascript" src="menu.js"></script>
|
|
<script type="text/javascript">
|
|
$(function() {
|
|
initMenu('',true,false,'search.php','Search',true);
|
|
$(function() { init_search(); });
|
|
});
|
|
</script>
|
|
<div id="main-nav"></div>
|
|
</div><!-- top -->
|
|
<div id="side-nav" class="ui-resizable side-nav-resizable">
|
|
<div id="nav-tree">
|
|
<div id="nav-tree-contents">
|
|
<div id="nav-sync" class="sync"></div>
|
|
</div>
|
|
</div>
|
|
<div id="splitbar" style="-moz-user-select:none;"
|
|
class="ui-resizable-handle">
|
|
</div>
|
|
</div>
|
|
<script type="text/javascript">
|
|
$(function(){initNavTree('crc64_8c.html','',''); });
|
|
</script>
|
|
<div id="container">
|
|
<div id="doc-content">
|
|
<!-- window showing the filter options -->
|
|
<div id="MSearchSelectWindow"
|
|
onmouseover="return searchBox.OnSearchSelectShow()"
|
|
onmouseout="return searchBox.OnSearchSelectHide()"
|
|
onkeydown="return searchBox.OnSearchSelectKey(event)">
|
|
</div>
|
|
|
|
<!-- iframe showing the search results (closed by default) -->
|
|
<div id="MSearchResultsWindow">
|
|
<div id="MSearchResults">
|
|
<div class="SRPage">
|
|
<div id="SRIndex">
|
|
<div id="SRResults"></div>
|
|
<div class="SRStatus" id="Loading">Loading...</div>
|
|
<div class="SRStatus" id="Searching">Searching...</div>
|
|
<div class="SRStatus" id="NoMatches">No Matches</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="header">
|
|
<div class="headertitle"><div class="title">crc64.c File Reference</div></div>
|
|
</div><!--header-->
|
|
<div class="contents">
|
|
<div class="textblock"><code>#include <stdlib.h></code><br />
|
|
<code>#include <<a class="el" href="aaruformat_8h_source.html">aaruformat.h</a>></code><br />
|
|
<code>#include "<a class="el" href="log_8h_source.html">log.h</a>"</code><br />
|
|
</div>
|
|
<p><a href="crc64_8c_source.html">Go to the source code of this file.</a></p>
|
|
<table class="memberdecls">
|
|
<tr class="heading"><td colspan="2"><h2 id="header-func-members" class="groupheader"><a id="func-members" name="func-members"></a>
|
|
Functions</h2></td></tr>
|
|
<tr class="memitem:af16f2c48e857f46bedf48db0bf495bad" id="r_af16f2c48e857f46bedf48db0bf495bad"><td class="memItemLeft" align="right" valign="top"><a class="el" href="structcrc64__ctx.html">crc64_ctx</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="#af16f2c48e857f46bedf48db0bf495bad">aaruf_crc64_init</a> (void)</td></tr>
|
|
<tr class="memdesc:af16f2c48e857f46bedf48db0bf495bad"><td class="mdescLeft"> </td><td class="mdescRight">Initializes a CRC64 context. <br /></td></tr>
|
|
<tr class="memitem:a1fb4423a841ccd728e3ad0d028cbc9b4" id="r_a1fb4423a841ccd728e3ad0d028cbc9b4"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="#a1fb4423a841ccd728e3ad0d028cbc9b4">aaruf_crc64_update</a> (<a class="el" href="structcrc64__ctx.html">crc64_ctx</a> *ctx, const uint8_t *data, uint32_t len)</td></tr>
|
|
<tr class="memdesc:a1fb4423a841ccd728e3ad0d028cbc9b4"><td class="mdescLeft"> </td><td class="mdescRight">Updates the CRC64 context with new data. <br /></td></tr>
|
|
<tr class="memitem:a83ecd1f5636915aebacfd29fc6306520" id="r_a83ecd1f5636915aebacfd29fc6306520"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="#a83ecd1f5636915aebacfd29fc6306520">aaruf_crc64_slicing</a> (uint64_t *previous_crc, const uint8_t *data, uint32_t len)</td></tr>
|
|
<tr class="memdesc:a83ecd1f5636915aebacfd29fc6306520"><td class="mdescLeft"> </td><td class="mdescRight">Updates a CRC64 value using the slicing-by-8 algorithm. <br /></td></tr>
|
|
<tr class="memitem:ae48cfb59c6585e9ffd4cd1a97044891f" id="r_ae48cfb59c6585e9ffd4cd1a97044891f"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="#ae48cfb59c6585e9ffd4cd1a97044891f">aaruf_crc64_final</a> (<a class="el" href="structcrc64__ctx.html">crc64_ctx</a> *ctx, uint64_t *crc)</td></tr>
|
|
<tr class="memdesc:ae48cfb59c6585e9ffd4cd1a97044891f"><td class="mdescLeft"> </td><td class="mdescRight">Computes the final CRC64 value from the context. <br /></td></tr>
|
|
<tr class="memitem:a4943569a8623eb2e3e0adc276c433097" id="r_a4943569a8623eb2e3e0adc276c433097"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="#a4943569a8623eb2e3e0adc276c433097">aaruf_crc64_free</a> (<a class="el" href="structcrc64__ctx.html">crc64_ctx</a> *ctx)</td></tr>
|
|
<tr class="memdesc:a4943569a8623eb2e3e0adc276c433097"><td class="mdescLeft"> </td><td class="mdescRight">Frees a CRC64 context. <br /></td></tr>
|
|
<tr class="memitem:adae8cec415b4af4b7a9e8a4a74d82828" id="r_adae8cec415b4af4b7a9e8a4a74d82828"><td class="memItemLeft" align="right" valign="top">uint64_t </td><td class="memItemRight" valign="bottom"><a class="el" href="#adae8cec415b4af4b7a9e8a4a74d82828">aaruf_crc64_data</a> (const uint8_t *data, const uint32_t len)</td></tr>
|
|
</table>
|
|
<a name="doc-func-members" id="doc-func-members"></a><h2 id="header-doc-func-members" class="groupheader">Function Documentation</h2>
|
|
<a id="adae8cec415b4af4b7a9e8a4a74d82828" name="adae8cec415b4af4b7a9e8a4a74d82828"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#adae8cec415b4af4b7a9e8a4a74d82828">◆ </a></span>aaruf_crc64_data()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">uint64_t aaruf_crc64_data </td>
|
|
<td>(</td>
|
|
<td class="paramtype">const uint8_t *</td> <td class="paramname"><span class="paramname"><em>data</em></span>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const uint32_t</td> <td class="paramname"><span class="paramname"><em>len</em></span> )</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p class="definition">Definition at line <a class="el" href="crc64_8c_source.html#l00160">160</a> of file <a class="el" href="crc64_8c_source.html">crc64.c</a>.</p>
|
|
|
|
<p class="reference">References <a class="el" href="decls_8h_source.html#l00045">AARU_CALL</a>, <a class="el" href="decls_8h_source.html#l00054">AARU_EXPORT</a>, <a class="el" href="crc64_8c_source.html#l00141">aaruf_crc64_final()</a>, <a class="el" href="crc64_8c_source.html#l00155">aaruf_crc64_free()</a>, <a class="el" href="crc64_8c_source.html#l00032">aaruf_crc64_init()</a>, and <a class="el" href="crc64_8c_source.html#l00055">aaruf_crc64_update()</a>.</p>
|
|
|
|
<p class="reference">Referenced by <a class="el" href="write_8c_source.html#l01427">aaruf_close_current_block()</a>, <a class="el" href="dump_8c_source.html#l00186">aaruf_get_dumphw()</a>, <a class="el" href="dump_8c_source.html#l00531">aaruf_set_dumphw()</a>, <a class="el" href="optical_8c_source.html#l00392">aaruf_set_tracks()</a>, <a class="el" href="data_8c_source.html#l00071">process_data_block()</a>, <a class="el" href="blocks_2dump_8c_source.html#l00107">process_dumphw_block()</a>, <a class="el" href="tape_8c_source.html#l00126">process_tape_files_block()</a>, <a class="el" href="tape_8c_source.html#l00347">process_tape_partitions_block()</a>, <a class="el" href="optical_8c_source.html#l00111">process_tracks_block()</a>, <a class="el" href="ddt__v2_8c_source.html#l01096">set_ddt_multi_level_v2()</a>, <a class="el" href="index__v1_8c_source.html#l00225">verify_index_v1()</a>, <a class="el" href="close_8c_source.html#l00077">write_cached_secondary_ddt()</a>, <a class="el" href="close_8c_source.html#l03506">write_dumphw_block()</a>, <a class="el" href="close_8c_source.html#l01851">write_dvd_long_sector_blocks()</a>, <a class="el" href="close_8c_source.html#l02296">write_dvd_title_key_decrypted_block()</a>, <a class="el" href="close_8c_source.html#l02462">write_media_tags()</a>, <a class="el" href="close_8c_source.html#l00879">write_mode2_subheaders_block()</a>, <a class="el" href="close_8c_source.html#l00997">write_sector_prefix()</a>, <a class="el" href="close_8c_source.html#l01241">write_sector_prefix_ddt()</a>, <a class="el" href="close_8c_source.html#l01547">write_sector_subchannel()</a>, <a class="el" href="close_8c_source.html#l01121">write_sector_suffix()</a>, <a class="el" href="close_8c_source.html#l01387">write_sector_suffix_ddt()</a>, <a class="el" href="close_8c_source.html#l00383">write_single_level_ddt()</a>, <a class="el" href="close_8c_source.html#l02724">write_tape_file_block()</a>, and <a class="el" href="close_8c_source.html#l02957">write_tape_partition_block()</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="ae48cfb59c6585e9ffd4cd1a97044891f" name="ae48cfb59c6585e9ffd4cd1a97044891f"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#ae48cfb59c6585e9ffd4cd1a97044891f">◆ </a></span>aaruf_crc64_final()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">int aaruf_crc64_final </td>
|
|
<td>(</td>
|
|
<td class="paramtype"><a class="el" href="structcrc64__ctx.html">crc64_ctx</a> *</td> <td class="paramname"><span class="paramname"><em>ctx</em></span>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">uint64_t *</td> <td class="paramname"><span class="paramname"><em>crc</em></span> )</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Computes the final CRC64 value from the context. </p>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">ctx</td><td>Pointer to the CRC64 context. </td></tr>
|
|
<tr><td class="paramname">crc</td><td>Pointer to store the resulting CRC64 value. </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="section return"><dt>Returns</dt><dd>0 on success, -1 on error. </dd></dl>
|
|
|
|
<p class="definition">Definition at line <a class="el" href="crc64_8c_source.html#l00141">141</a> of file <a class="el" href="crc64_8c_source.html">crc64.c</a>.</p>
|
|
|
|
<p class="reference">References <a class="el" href="decls_8h_source.html#l00045">AARU_CALL</a>, <a class="el" href="decls_8h_source.html#l00054">AARU_EXPORT</a>, <a class="el" href="crc64_8h_source.html#l00057">crc64_ctx::crc</a>, and <a class="el" href="crc64_8h_source.html#l00280">CRC64_ECMA_SEED</a>.</p>
|
|
|
|
<p class="reference">Referenced by <a class="el" href="write_8c_source.html#l01427">aaruf_close_current_block()</a>, <a class="el" href="crc64_8c_source.html#l00160">aaruf_crc64_data()</a>, <a class="el" href="verify_8c_source.html#l00130">aaruf_verify_image()</a>, <a class="el" href="ddt__v2_8c_source.html#l00724">decode_ddt_multi_level_v2()</a>, <a class="el" href="ddt__v2_8c_source.html#l00096">process_ddt_v2()</a>, <a class="el" href="ddt__v2_8c_source.html#l01096">set_ddt_multi_level_v2()</a>, <a class="el" href="index__v2_8c_source.html#l00227">verify_index_v2()</a>, <a class="el" href="index__v3_8c_source.html#l00408">verify_index_v3()</a>, <a class="el" href="close_8c_source.html#l00077">write_cached_secondary_ddt()</a>, <a class="el" href="close_8c_source.html#l03926">write_index_block()</a>, and <a class="el" href="close_8c_source.html#l00284">write_primary_ddt()</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a4943569a8623eb2e3e0adc276c433097" name="a4943569a8623eb2e3e0adc276c433097"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a4943569a8623eb2e3e0adc276c433097">◆ </a></span>aaruf_crc64_free()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void aaruf_crc64_free </td>
|
|
<td>(</td>
|
|
<td class="paramtype"><a class="el" href="structcrc64__ctx.html">crc64_ctx</a> *</td> <td class="paramname"><span class="paramname"><em>ctx</em></span></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Frees a CRC64 context. </p>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">ctx</td><td>Pointer to the CRC64 context to free. </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
<p class="definition">Definition at line <a class="el" href="crc64_8c_source.html#l00155">155</a> of file <a class="el" href="crc64_8c_source.html">crc64.c</a>.</p>
|
|
|
|
<p class="reference">References <a class="el" href="decls_8h_source.html#l00045">AARU_CALL</a>, and <a class="el" href="decls_8h_source.html#l00054">AARU_EXPORT</a>.</p>
|
|
|
|
<p class="reference">Referenced by <a class="el" href="write_8c_source.html#l01427">aaruf_close_current_block()</a>, <a class="el" href="crc64_8c_source.html#l00160">aaruf_crc64_data()</a>, <a class="el" href="verify_8c_source.html#l00130">aaruf_verify_image()</a>, <a class="el" href="index__v2_8c_source.html#l00227">verify_index_v2()</a>, and <a class="el" href="index__v3_8c_source.html#l00408">verify_index_v3()</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="af16f2c48e857f46bedf48db0bf495bad" name="af16f2c48e857f46bedf48db0bf495bad"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#af16f2c48e857f46bedf48db0bf495bad">◆ </a></span>aaruf_crc64_init()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname"><a class="el" href="structcrc64__ctx.html">crc64_ctx</a> * aaruf_crc64_init </td>
|
|
<td>(</td>
|
|
<td class="paramtype">void</td> <td class="paramname"><span class="paramname"><em></em></span></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Initializes a CRC64 context. </p>
|
|
<p>Allocates and initializes a CRC64 context for checksum calculations.</p>
|
|
<dl class="section return"><dt>Returns</dt><dd>Pointer to the initialized <a class="el" href="structcrc64__ctx.html" title="Minimal ECMA-182 CRC64 incremental state container (running value only).">crc64_ctx</a> structure, or NULL on failure. </dd></dl>
|
|
|
|
<p class="definition">Definition at line <a class="el" href="crc64_8c_source.html#l00032">32</a> of file <a class="el" href="crc64_8c_source.html">crc64.c</a>.</p>
|
|
|
|
<p class="reference">References <a class="el" href="decls_8h_source.html#l00045">AARU_CALL</a>, <a class="el" href="decls_8h_source.html#l00054">AARU_EXPORT</a>, <a class="el" href="crc64_8h_source.html#l00057">crc64_ctx::crc</a>, <a class="el" href="crc64_8h_source.html#l00280">CRC64_ECMA_SEED</a>, and <a class="el" href="log_8h_source.html#l00025">TRACE</a>.</p>
|
|
|
|
<p class="reference">Referenced by <a class="el" href="write_8c_source.html#l01427">aaruf_close_current_block()</a>, <a class="el" href="crc64_8c_source.html#l00160">aaruf_crc64_data()</a>, <a class="el" href="verify_8c_source.html#l00130">aaruf_verify_image()</a>, <a class="el" href="ddt__v2_8c_source.html#l00724">decode_ddt_multi_level_v2()</a>, <a class="el" href="ddt__v2_8c_source.html#l00096">process_ddt_v2()</a>, <a class="el" href="ddt__v2_8c_source.html#l01096">set_ddt_multi_level_v2()</a>, <a class="el" href="index__v2_8c_source.html#l00227">verify_index_v2()</a>, <a class="el" href="index__v3_8c_source.html#l00408">verify_index_v3()</a>, <a class="el" href="close_8c_source.html#l00077">write_cached_secondary_ddt()</a>, <a class="el" href="close_8c_source.html#l03926">write_index_block()</a>, and <a class="el" href="close_8c_source.html#l00284">write_primary_ddt()</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a83ecd1f5636915aebacfd29fc6306520" name="a83ecd1f5636915aebacfd29fc6306520"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a83ecd1f5636915aebacfd29fc6306520">◆ </a></span>aaruf_crc64_slicing()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void aaruf_crc64_slicing </td>
|
|
<td>(</td>
|
|
<td class="paramtype">uint64_t *</td> <td class="paramname"><span class="paramname"><em>previous_crc</em></span>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const uint8_t *</td> <td class="paramname"><span class="paramname"><em>data</em></span>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">uint32_t</td> <td class="paramname"><span class="paramname"><em>len</em></span> )</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Updates a CRC64 value using the slicing-by-8 algorithm. </p>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">previous_crc</td><td>Pointer to the previous CRC64 value (input/output). </td></tr>
|
|
<tr><td class="paramname">data</td><td>Pointer to the data buffer. </td></tr>
|
|
<tr><td class="paramname">len</td><td>Length of the data buffer in bytes. </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
<p class="definition">Definition at line <a class="el" href="crc64_8c_source.html#l00102">102</a> of file <a class="el" href="crc64_8c_source.html">crc64.c</a>.</p>
|
|
|
|
<p class="reference">References <a class="el" href="decls_8h_source.html#l00045">AARU_CALL</a>, <a class="el" href="decls_8h_source.html#l00054">AARU_EXPORT</a>, and <a class="el" href="crc64_8h_source.html#l00066">crc64_table</a>.</p>
|
|
|
|
<p class="reference">Referenced by <a class="el" href="crc64_8c_source.html#l00055">aaruf_crc64_update()</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a1fb4423a841ccd728e3ad0d028cbc9b4" name="a1fb4423a841ccd728e3ad0d028cbc9b4"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a1fb4423a841ccd728e3ad0d028cbc9b4">◆ </a></span>aaruf_crc64_update()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">int aaruf_crc64_update </td>
|
|
<td>(</td>
|
|
<td class="paramtype"><a class="el" href="structcrc64__ctx.html">crc64_ctx</a> *</td> <td class="paramname"><span class="paramname"><em>ctx</em></span>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const uint8_t *</td> <td class="paramname"><span class="paramname"><em>data</em></span>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">uint32_t</td> <td class="paramname"><span class="paramname"><em>len</em></span> )</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Updates the CRC64 context with new data. </p>
|
|
<p>Processes the given data buffer and updates the CRC64 value in the context.</p>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">ctx</td><td>Pointer to the CRC64 context. </td></tr>
|
|
<tr><td class="paramname">data</td><td>Pointer to the data buffer. </td></tr>
|
|
<tr><td class="paramname">len</td><td>Length of the data buffer. </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="section return"><dt>Returns</dt><dd>0 on success, or -1 on error. </dd></dl>
|
|
|
|
<p class="definition">Definition at line <a class="el" href="crc64_8c_source.html#l00055">55</a> of file <a class="el" href="crc64_8c_source.html">crc64.c</a>.</p>
|
|
|
|
<p class="reference">References <a class="el" href="decls_8h_source.html#l00045">AARU_CALL</a>, <a class="el" href="decls_8h_source.html#l00054">AARU_EXPORT</a>, <a class="el" href="crc64_8c_source.html#l00102">aaruf_crc64_slicing()</a>, <a class="el" href="crc64_8h_source.html#l00057">crc64_ctx::crc</a>, and <a class="el" href="log_8h_source.html#l00025">TRACE</a>.</p>
|
|
|
|
<p class="reference">Referenced by <a class="el" href="write_8c_source.html#l01427">aaruf_close_current_block()</a>, <a class="el" href="crc64_8c_source.html#l00160">aaruf_crc64_data()</a>, <a class="el" href="ddt__v2_8c_source.html#l00724">decode_ddt_multi_level_v2()</a>, <a class="el" href="ddt__v2_8c_source.html#l00096">process_ddt_v2()</a>, <a class="el" href="ddt__v2_8c_source.html#l01096">set_ddt_multi_level_v2()</a>, <a class="el" href="verify_8c_source.html#l00030">update_crc64_from_stream()</a>, <a class="el" href="index__v2_8c_source.html#l00227">verify_index_v2()</a>, <a class="el" href="index__v3_8c_source.html#l00408">verify_index_v3()</a>, <a class="el" href="close_8c_source.html#l00077">write_cached_secondary_ddt()</a>, <a class="el" href="close_8c_source.html#l03926">write_index_block()</a>, and <a class="el" href="close_8c_source.html#l00284">write_primary_ddt()</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
</div><!-- contents -->
|
|
</div><!-- doc-content -->
|
|
<div id="page-nav" class="page-nav-panel">
|
|
<div id="page-nav-resize-handle"></div>
|
|
<div id="page-nav-tree">
|
|
<div id="page-nav-contents">
|
|
</div><!-- page-nav-contents -->
|
|
</div><!-- page-nav-tree -->
|
|
</div><!-- page-nav -->
|
|
</div><!-- container -->
|
|
<!-- start footer part -->
|
|
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
|
|
<ul>
|
|
<li class="navelem"><a href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a href="dir_b86b57f9d61b104fa8483aa475f863ae.html">crc64</a></li><li class="navelem"><a href="crc64_8c.html">crc64.c</a></li>
|
|
<li class="footer">Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.14.0 </li>
|
|
</ul>
|
|
</div>
|
|
</body>
|
|
</html>
|