mirror of
https://github.com/mcneel/opennurbs.git
synced 2026-04-02 09:26:59 +08:00
439 lines
32 KiB
HTML
439 lines
32 KiB
HTML
<!-- HTML header for doxygen 1.8.13-->
|
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
|
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
|
|
<meta name="generator" content="Doxygen 1.8.13"/>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
|
<title>openNURBS SDK Help: ON_CompressStream Class Reference</title>
|
|
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
|
|
<!-- <script type="text/javascript" src="../../jquery.js"></script> -->
|
|
<script type="text/javascript" src="https://code.jquery.com/jquery-2.1.1.min.js"></script>
|
|
<script type="text/javascript" src="../../dynsections.js"></script>
|
|
<link href="../../doxygen.css" rel="stylesheet" type="text/css" />
|
|
<link href="../../customdoxygen.css" rel="stylesheet" type="text/css"/>
|
|
<!-- bootstrap -->
|
|
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
|
|
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>
|
|
<!-- smartmenus -->
|
|
<link href="../../jquery.smartmenus.bootstrap.css" rel="stylesheet">
|
|
<script type="text/javascript" src="../../jquery.smartmenus.js"></script>
|
|
<script type="text/javascript" src="../../jquery.smartmenus.bootstrap.js"></script>
|
|
</head>
|
|
<body>
|
|
<!-- <div class="version-banner">
|
|
Go back to the <a href="/">main site</a>...
|
|
</div> -->
|
|
<div class="container">
|
|
<!-- navbar -->
|
|
<nav class="navbar navbar-default">
|
|
<div class="container-fluid">
|
|
<a class="navbar-brand" href="#">openNURBS SDK Help</a>
|
|
<div class="navbar-collapse collapse" id="main-nav-placeholder">
|
|
<!-- <p class="navbar-text navbar-right">v6.0</p> -->
|
|
<ul class="nav navbar-nav navbar-right">
|
|
<li class="dropdown">
|
|
<a class="dropdown-toggle" href="#">v6.0 <span class="caret"></span></a>
|
|
<ul class="dropdown-menu">
|
|
<li><a href="#">Latest (6.x)</a></li>
|
|
<li class="disabled"><a href="#">WIP (7.x)</a></li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
</nav>
|
|
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
|
|
<div class="page-content">
|
|
<!-- end header part -->
|
|
<!-- Generated by Doxygen 1.8.13 -->
|
|
<script type="text/javascript" src="../../menudata.js"></script>
|
|
<script type="text/javascript" src="../../menu.js"></script>
|
|
<script type="text/javascript">
|
|
$(function() {
|
|
initMenu('../../',false,false,'search.php','Search');
|
|
});
|
|
</script>
|
|
<div id="main-nav"></div>
|
|
</div><!-- top -->
|
|
<div class="header">
|
|
<div class="summary">
|
|
<a href="#pub-methods">Public Member Functions</a> |
|
|
<a href="../../dc/d60/class_o_n___compress_stream-members.html">List of all members</a> </div>
|
|
<div class="headertitle">
|
|
<div class="title">ON_CompressStream Class Reference</div> </div>
|
|
</div><!--header-->
|
|
<div class="contents">
|
|
|
|
<p><code>#include <<a class="el" href="../../d1/dac/opennurbs__compress_8h_source.html">opennurbs_compress.h</a>></code></p>
|
|
<table class="memberdecls">
|
|
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
|
|
Public Member Functions</h2></td></tr>
|
|
<tr class="memitem:a87029b375703f7c6afa62f5b27196a77"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d7/d8c/class_o_n___compress_stream.html#a87029b375703f7c6afa62f5b27196a77">ON_CompressStream</a> ()</td></tr>
|
|
<tr class="separator:a87029b375703f7c6afa62f5b27196a77"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a4d1828f4099ff69ce70bd61ecc3a1585"><td class="memItemLeft" align="right" valign="top">virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d7/d8c/class_o_n___compress_stream.html#a4d1828f4099ff69ce70bd61ecc3a1585">~ON_CompressStream</a> ()</td></tr>
|
|
<tr class="separator:a4d1828f4099ff69ce70bd61ecc3a1585"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a2ef967209337035985063d0aa8f28d88"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d7/d8c/class_o_n___compress_stream.html#a2ef967209337035985063d0aa8f28d88">Begin</a> ()</td></tr>
|
|
<tr class="memdesc:a2ef967209337035985063d0aa8f28d88"><td class="mdescLeft"> </td><td class="mdescRight">Call <a class="el" href="../../d7/d8c/class_o_n___compress_stream.html#a2ef967209337035985063d0aa8f28d88" title="Call Begin() one time to initialize the compression calculation. Then call In() one or more times to ...">Begin()</a> one time to initialize the compression calculation. Then call <a class="el" href="../../d7/d8c/class_o_n___compress_stream.html#a4f45e26920b7c8f971f43de758213cb1" title="Call In() one or more times to compress a stream of uncompressed bytes. After the last call to In()...">In()</a> one or more times to submit the uncompressed stream to the compression calculation. When you reach the end of the uncompressed stream, call <a class="el" href="../../d7/d8c/class_o_n___compress_stream.html#a0b910180a8c17a3f33c3cb511b886fce" title="After the last call to In(), call End(). Calling End() may generate zero or more calls to the output ...">End()</a>. <a href="#a2ef967209337035985063d0aa8f28d88">More...</a><br /></td></tr>
|
|
<tr class="separator:a2ef967209337035985063d0aa8f28d88"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a97a7b70543c1ffd6bb6ac6965e097893"><td class="memItemLeft" align="right" valign="top">void * </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d7/d8c/class_o_n___compress_stream.html#a97a7b70543c1ffd6bb6ac6965e097893">CallbackContext</a> () const</td></tr>
|
|
<tr class="separator:a97a7b70543c1ffd6bb6ac6965e097893"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a5098d6c54bfa5ffd41ad4ecb601a317f"><td class="memItemLeft" align="right" valign="top">ON_StreamCallbackFunction </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d7/d8c/class_o_n___compress_stream.html#a5098d6c54bfa5ffd41ad4ecb601a317f">CallbackFunction</a> () const</td></tr>
|
|
<tr class="separator:a5098d6c54bfa5ffd41ad4ecb601a317f"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a0b910180a8c17a3f33c3cb511b886fce"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d7/d8c/class_o_n___compress_stream.html#a0b910180a8c17a3f33c3cb511b886fce">End</a> ()</td></tr>
|
|
<tr class="memdesc:a0b910180a8c17a3f33c3cb511b886fce"><td class="mdescLeft"> </td><td class="mdescRight">After the last call to <a class="el" href="../../d7/d8c/class_o_n___compress_stream.html#a4f45e26920b7c8f971f43de758213cb1" title="Call In() one or more times to compress a stream of uncompressed bytes. After the last call to In()...">In()</a>, call <a class="el" href="../../d7/d8c/class_o_n___compress_stream.html#a0b910180a8c17a3f33c3cb511b886fce" title="After the last call to In(), call End(). Calling End() may generate zero or more calls to the output ...">End()</a>. Calling <a class="el" href="../../d7/d8c/class_o_n___compress_stream.html#a0b910180a8c17a3f33c3cb511b886fce" title="After the last call to In(), call End(). Calling End() may generate zero or more calls to the output ...">End()</a> may generate zero or more calls to the output stream handler. <a href="#a0b910180a8c17a3f33c3cb511b886fce">More...</a><br /></td></tr>
|
|
<tr class="separator:a0b910180a8c17a3f33c3cb511b886fce"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a4f45e26920b7c8f971f43de758213cb1"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d7/d8c/class_o_n___compress_stream.html#a4f45e26920b7c8f971f43de758213cb1">In</a> (ON__UINT64 in_buffer_size, const void *in_buffer)</td></tr>
|
|
<tr class="memdesc:a4f45e26920b7c8f971f43de758213cb1"><td class="mdescLeft"> </td><td class="mdescRight">Call <a class="el" href="../../d7/d8c/class_o_n___compress_stream.html#a4f45e26920b7c8f971f43de758213cb1" title="Call In() one or more times to compress a stream of uncompressed bytes. After the last call to In()...">In()</a> one or more times to compress a stream of uncompressed bytes. After the last call to <a class="el" href="../../d7/d8c/class_o_n___compress_stream.html#a4f45e26920b7c8f971f43de758213cb1" title="Call In() one or more times to compress a stream of uncompressed bytes. After the last call to In()...">In()</a>, call <a class="el" href="../../d7/d8c/class_o_n___compress_stream.html#a0b910180a8c17a3f33c3cb511b886fce" title="After the last call to In(), call End(). Calling End() may generate zero or more calls to the output ...">End()</a>. Calling <a class="el" href="../../d7/d8c/class_o_n___compress_stream.html#a4f45e26920b7c8f971f43de758213cb1" title="Call In() one or more times to compress a stream of uncompressed bytes. After the last call to In()...">In()</a> may generate zero or more calls to the output stream handler. <a href="#a4f45e26920b7c8f971f43de758213cb1">More...</a><br /></td></tr>
|
|
<tr class="separator:a4f45e26920b7c8f971f43de758213cb1"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a7733c7e94200a85cf11c56094a9354c7"><td class="memItemLeft" align="right" valign="top">ON__UINT32 </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d7/d8c/class_o_n___compress_stream.html#a7733c7e94200a85cf11c56094a9354c7">InCRC</a> () const</td></tr>
|
|
<tr class="separator:a7733c7e94200a85cf11c56094a9354c7"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:aa3187ae793e762a2667821d4a27c06ff"><td class="memItemLeft" align="right" valign="top">ON__UINT64 </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d7/d8c/class_o_n___compress_stream.html#aa3187ae793e762a2667821d4a27c06ff">InSize</a> () const</td></tr>
|
|
<tr class="separator:aa3187ae793e762a2667821d4a27c06ff"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a8e1c6b600127cf0c67e2309b91b4093b"><td class="memItemLeft" align="right" valign="top">virtual bool </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d7/d8c/class_o_n___compress_stream.html#a8e1c6b600127cf0c67e2309b91b4093b">Out</a> (void *callback_context, ON__UINT32 out_buffer_size, const void *out_buffer)</td></tr>
|
|
<tr class="memdesc:a8e1c6b600127cf0c67e2309b91b4093b"><td class="mdescLeft"> </td><td class="mdescRight">If an explicit compressed stream output handler is not specified ( <a class="el" href="../../d7/d8c/class_o_n___compress_stream.html#a5098d6c54bfa5ffd41ad4ecb601a317f">CallbackFunction()</a> returns null ), then the virtual <a class="el" href="../../d7/d8c/class_o_n___compress_stream.html#a8e1c6b600127cf0c67e2309b91b4093b" title="If an explicit compressed stream output handler is not specified ( CallbackFunction() returns null )...">Out()</a> function is called to handle the compressed output stream. As the input stream is compressed, one or more calls to <a class="el" href="../../d7/d8c/class_o_n___compress_stream.html#a8e1c6b600127cf0c67e2309b91b4093b" title="If an explicit compressed stream output handler is not specified ( CallbackFunction() returns null )...">Out()</a> will occur. <a href="#a8e1c6b600127cf0c67e2309b91b4093b">More...</a><br /></td></tr>
|
|
<tr class="separator:a8e1c6b600127cf0c67e2309b91b4093b"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a9a19335bba6260ce2342b91ea71c5be1"><td class="memItemLeft" align="right" valign="top">ON__UINT32 </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d7/d8c/class_o_n___compress_stream.html#a9a19335bba6260ce2342b91ea71c5be1">OutCRC</a> () const</td></tr>
|
|
<tr class="separator:a9a19335bba6260ce2342b91ea71c5be1"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a3860050814973008f0137375f1389861"><td class="memItemLeft" align="right" valign="top">ON__UINT64 </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d7/d8c/class_o_n___compress_stream.html#a3860050814973008f0137375f1389861">OutSize</a> () const</td></tr>
|
|
<tr class="separator:a3860050814973008f0137375f1389861"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a0bf06e8b42af025cac07e081a12a3e20"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d7/d8c/class_o_n___compress_stream.html#a0bf06e8b42af025cac07e081a12a3e20">SetCallback</a> (ON_StreamCallbackFunction callback_function, void *callback_context)</td></tr>
|
|
<tr class="memdesc:a0bf06e8b42af025cac07e081a12a3e20"><td class="mdescLeft"> </td><td class="mdescRight"><a class="el" href="../../d7/d8c/class_o_n___compress_stream.html">ON_CompressStream</a> delivers the compressed stream by calling a compressed stream output handler function. There are two options for specifying the compressed stream output handler function. <a href="#a0bf06e8b42af025cac07e081a12a3e20">More...</a><br /></td></tr>
|
|
<tr class="separator:a0bf06e8b42af025cac07e081a12a3e20"><td class="memSeparator" colspan="2"> </td></tr>
|
|
</table>
|
|
<h2 class="groupheader">Constructor & Destructor Documentation</h2>
|
|
<a id="a87029b375703f7c6afa62f5b27196a77"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a87029b375703f7c6afa62f5b27196a77">◆ </a></span>ON_CompressStream()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">ON_CompressStream::ON_CompressStream </td>
|
|
<td>(</td>
|
|
<td class="paramname"></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a4d1828f4099ff69ce70bd61ecc3a1585"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a4d1828f4099ff69ce70bd61ecc3a1585">◆ </a></span>~ON_CompressStream()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">virtual ON_CompressStream::~ON_CompressStream </td>
|
|
<td>(</td>
|
|
<td class="paramname"></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">virtual</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
</div>
|
|
</div>
|
|
<h2 class="groupheader">Member Function Documentation</h2>
|
|
<a id="a2ef967209337035985063d0aa8f28d88"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a2ef967209337035985063d0aa8f28d88">◆ </a></span>Begin()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">bool ON_CompressStream::Begin </td>
|
|
<td>(</td>
|
|
<td class="paramname"></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Call <a class="el" href="../../d7/d8c/class_o_n___compress_stream.html#a2ef967209337035985063d0aa8f28d88" title="Call Begin() one time to initialize the compression calculation. Then call In() one or more times to ...">Begin()</a> one time to initialize the compression calculation. Then call <a class="el" href="../../d7/d8c/class_o_n___compress_stream.html#a4f45e26920b7c8f971f43de758213cb1" title="Call In() one or more times to compress a stream of uncompressed bytes. After the last call to In()...">In()</a> one or more times to submit the uncompressed stream to the compression calculation. When you reach the end of the uncompressed stream, call <a class="el" href="../../d7/d8c/class_o_n___compress_stream.html#a0b910180a8c17a3f33c3cb511b886fce" title="After the last call to In(), call End(). Calling End() may generate zero or more calls to the output ...">End()</a>. </p>
|
|
<dl class="section return"><dt>Returns</dt><dd>true if successful, false if an error occured. </dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a97a7b70543c1ffd6bb6ac6965e097893"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a97a7b70543c1ffd6bb6ac6965e097893">◆ </a></span>CallbackContext()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void* ON_CompressStream::CallbackContext </td>
|
|
<td>(</td>
|
|
<td class="paramname"></td><td>)</td>
|
|
<td> const</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<dl class="section return"><dt>Returns</dt><dd>Current value of the context pointer passed as the first argument to the compressed stream output handler function. </dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a5098d6c54bfa5ffd41ad4ecb601a317f"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a5098d6c54bfa5ffd41ad4ecb601a317f">◆ </a></span>CallbackFunction()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">ON_StreamCallbackFunction ON_CompressStream::CallbackFunction </td>
|
|
<td>(</td>
|
|
<td class="paramname"></td><td>)</td>
|
|
<td> const</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<dl class="section return"><dt>Returns</dt><dd>Current value of the callback function for handling the compressed stream. If the callback function is null, the the virtual <a class="el" href="../../d7/d8c/class_o_n___compress_stream.html#a8e1c6b600127cf0c67e2309b91b4093b" title="If an explicit compressed stream output handler is not specified ( CallbackFunction() returns null )...">Out()</a> function is used to handle </dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a0b910180a8c17a3f33c3cb511b886fce"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a0b910180a8c17a3f33c3cb511b886fce">◆ </a></span>End()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">bool ON_CompressStream::End </td>
|
|
<td>(</td>
|
|
<td class="paramname"></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>After the last call to <a class="el" href="../../d7/d8c/class_o_n___compress_stream.html#a4f45e26920b7c8f971f43de758213cb1" title="Call In() one or more times to compress a stream of uncompressed bytes. After the last call to In()...">In()</a>, call <a class="el" href="../../d7/d8c/class_o_n___compress_stream.html#a0b910180a8c17a3f33c3cb511b886fce" title="After the last call to In(), call End(). Calling End() may generate zero or more calls to the output ...">End()</a>. Calling <a class="el" href="../../d7/d8c/class_o_n___compress_stream.html#a0b910180a8c17a3f33c3cb511b886fce" title="After the last call to In(), call End(). Calling End() may generate zero or more calls to the output ...">End()</a> may generate zero or more calls to the output stream handler. </p>
|
|
<dl class="section return"><dt>Returns</dt><dd>true if successful, false if an error occured. </dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a4f45e26920b7c8f971f43de758213cb1"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a4f45e26920b7c8f971f43de758213cb1">◆ </a></span>In()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">bool ON_CompressStream::In </td>
|
|
<td>(</td>
|
|
<td class="paramtype">ON__UINT64 </td>
|
|
<td class="paramname"><em>in_buffer_size</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const void * </td>
|
|
<td class="paramname"><em>in_buffer</em> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Call <a class="el" href="../../d7/d8c/class_o_n___compress_stream.html#a4f45e26920b7c8f971f43de758213cb1" title="Call In() one or more times to compress a stream of uncompressed bytes. After the last call to In()...">In()</a> one or more times to compress a stream of uncompressed bytes. After the last call to <a class="el" href="../../d7/d8c/class_o_n___compress_stream.html#a4f45e26920b7c8f971f43de758213cb1" title="Call In() one or more times to compress a stream of uncompressed bytes. After the last call to In()...">In()</a>, call <a class="el" href="../../d7/d8c/class_o_n___compress_stream.html#a0b910180a8c17a3f33c3cb511b886fce" title="After the last call to In(), call End(). Calling End() may generate zero or more calls to the output ...">End()</a>. Calling <a class="el" href="../../d7/d8c/class_o_n___compress_stream.html#a4f45e26920b7c8f971f43de758213cb1" title="Call In() one or more times to compress a stream of uncompressed bytes. After the last call to In()...">In()</a> may generate zero or more calls to the output stream handler. </p>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">in_buffer_size</td><td>[in] number of bytes in in_buffer</td></tr>
|
|
<tr><td class="paramname">in_buffer</td><td>[in]</td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="section return"><dt>Returns</dt><dd>true if successful, false if an error occured. </dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a7733c7e94200a85cf11c56094a9354c7"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a7733c7e94200a85cf11c56094a9354c7">◆ </a></span>InCRC()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">ON__UINT32 ON_CompressStream::InCRC </td>
|
|
<td>(</td>
|
|
<td class="paramname"></td><td>)</td>
|
|
<td> const</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<dl class="section return"><dt>Returns</dt><dd>Then the returned value is the 32-bit crc of the input stream. The crc is updated every time <a class="el" href="../../d7/d8c/class_o_n___compress_stream.html#a4f45e26920b7c8f971f43de758213cb1" title="Call In() one or more times to compress a stream of uncompressed bytes. After the last call to In()...">In()</a> is called before any calls are made to the output stream handler. If the compression calculation is finished ( <a class="el" href="../../d7/d8c/class_o_n___compress_stream.html#a0b910180a8c17a3f33c3cb511b886fce" title="After the last call to In(), call End(). Calling End() may generate zero or more calls to the output ...">End()</a> has been called ), then the returned value is the 32-bit crc of the entire input stream. </dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="aa3187ae793e762a2667821d4a27c06ff"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#aa3187ae793e762a2667821d4a27c06ff">◆ </a></span>InSize()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">ON__UINT64 ON_CompressStream::InSize </td>
|
|
<td>(</td>
|
|
<td class="paramname"></td><td>)</td>
|
|
<td> const</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<dl class="section return"><dt>Returns</dt><dd>Then the returned value is the total number bytes in the input stream. The size is updated every time <a class="el" href="../../d7/d8c/class_o_n___compress_stream.html#a4f45e26920b7c8f971f43de758213cb1" title="Call In() one or more times to compress a stream of uncompressed bytes. After the last call to In()...">In()</a> is called before any calls are made to the output stream handler. If the calculation is finished ( <a class="el" href="../../d7/d8c/class_o_n___compress_stream.html#a0b910180a8c17a3f33c3cb511b886fce" title="After the last call to In(), call End(). Calling End() may generate zero or more calls to the output ...">End()</a> has been called ), then the returned value is the total number of bytes in the entire input stream. </dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a8e1c6b600127cf0c67e2309b91b4093b"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a8e1c6b600127cf0c67e2309b91b4093b">◆ </a></span>Out()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">virtual bool ON_CompressStream::Out </td>
|
|
<td>(</td>
|
|
<td class="paramtype">void * </td>
|
|
<td class="paramname"><em>callback_context</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">ON__UINT32 </td>
|
|
<td class="paramname"><em>out_buffer_size</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const void * </td>
|
|
<td class="paramname"><em>out_buffer</em> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">virtual</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>If an explicit compressed stream output handler is not specified ( <a class="el" href="../../d7/d8c/class_o_n___compress_stream.html#a5098d6c54bfa5ffd41ad4ecb601a317f">CallbackFunction()</a> returns null ), then the virtual <a class="el" href="../../d7/d8c/class_o_n___compress_stream.html#a8e1c6b600127cf0c67e2309b91b4093b" title="If an explicit compressed stream output handler is not specified ( CallbackFunction() returns null )...">Out()</a> function is called to handle the compressed output stream. As the input stream is compressed, one or more calls to <a class="el" href="../../d7/d8c/class_o_n___compress_stream.html#a8e1c6b600127cf0c67e2309b91b4093b" title="If an explicit compressed stream output handler is not specified ( CallbackFunction() returns null )...">Out()</a> will occur. </p>
|
|
<dl class="section return"><dt>Returns</dt><dd>True to continue compressing and false to cancel the compression calculation. </dd></dl>
|
|
<p>In general, it is probably going to be easier to test and debug your code if you ignore the callback_context parameter and add a member variable to your derived class to make additional information accessable to your Out function. </p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a9a19335bba6260ce2342b91ea71c5be1"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a9a19335bba6260ce2342b91ea71c5be1">◆ </a></span>OutCRC()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">ON__UINT32 ON_CompressStream::OutCRC </td>
|
|
<td>(</td>
|
|
<td class="paramname"></td><td>)</td>
|
|
<td> const</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<dl class="section return"><dt>Returns</dt><dd>Then the returned value is the 32bit crc of the output stream. The crc is updated immediately after each call to the output stream handler. If the calculation is finished ( <a class="el" href="../../d7/d8c/class_o_n___compress_stream.html#a0b910180a8c17a3f33c3cb511b886fce" title="After the last call to In(), call End(). Calling End() may generate zero or more calls to the output ...">End()</a> has been called ), then the returned value is the 32-bit crc of the entire output stream. </dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a3860050814973008f0137375f1389861"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a3860050814973008f0137375f1389861">◆ </a></span>OutSize()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">ON__UINT64 ON_CompressStream::OutSize </td>
|
|
<td>(</td>
|
|
<td class="paramname"></td><td>)</td>
|
|
<td> const</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<dl class="section return"><dt>Returns</dt><dd>Then the returned value is the total number bytes in the output stream. The size is incremented immediately after each call to the output stream handler. If the compression calculation is finished ( <a class="el" href="../../d7/d8c/class_o_n___compress_stream.html#a0b910180a8c17a3f33c3cb511b886fce" title="After the last call to In(), call End(). Calling End() may generate zero or more calls to the output ...">End()</a> has been called ), then the returned value is the total number of bytes in the entire output stream. </dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a0bf06e8b42af025cac07e081a12a3e20"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a0bf06e8b42af025cac07e081a12a3e20">◆ </a></span>SetCallback()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">bool ON_CompressStream::SetCallback </td>
|
|
<td>(</td>
|
|
<td class="paramtype">ON_StreamCallbackFunction </td>
|
|
<td class="paramname"><em>callback_function</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">void * </td>
|
|
<td class="paramname"><em>callback_context</em> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p><a class="el" href="../../d7/d8c/class_o_n___compress_stream.html">ON_CompressStream</a> delivers the compressed stream by calling a compressed stream output handler function. There are two options for specifying the compressed stream output handler function. </p>
|
|
<ol type="1">
|
|
<li>Overriding the virtual <a class="el" href="../../d7/d8c/class_o_n___compress_stream.html#a8e1c6b600127cf0c67e2309b91b4093b" title="If an explicit compressed stream output handler is not specified ( CallbackFunction() returns null )...">Out()</a> function.</li>
|
|
<li>Providing a callback function. <a class="el" href="../../d7/d8c/class_o_n___compress_stream.html#a0bf06e8b42af025cac07e081a12a3e20" title="ON_CompressStream delivers the compressed stream by calling a compressed stream output handler functi...">SetCallback()</a> is used to specify a callback function to handle the compressed stream and to specify a context pointer to be passed to either option of the handler. </li>
|
|
</ol>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">callback_function</td><td>[in] Function to call with sections of the compressed stream. If callback_function is null, then the virtual <a class="el" href="../../d7/d8c/class_o_n___compress_stream.html#a8e1c6b600127cf0c67e2309b91b4093b" title="If an explicit compressed stream output handler is not specified ( CallbackFunction() returns null )...">Out()</a> function will be called. When callback_function is specified, it must return true if the compression calculation should continue and false to cancel the compression calculation.</td></tr>
|
|
<tr><td class="paramname">callback_context</td><td>[in] This value is passed as the first argument when calling callback_function or the virutal <a class="el" href="../../d7/d8c/class_o_n___compress_stream.html#a8e1c6b600127cf0c67e2309b91b4093b" title="If an explicit compressed stream output handler is not specified ( CallbackFunction() returns null )...">Out()</a> function.</td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="section return"><dt>Returns</dt><dd>True if successful. </dd></dl>
|
|
<p>Once compression has started, it would be unusual to intentionally change the compressed stream output handler, but you can do this if you need to. </p>
|
|
|
|
</div>
|
|
</div>
|
|
</div><!-- contents -->
|
|
<!-- HTML footer for doxygen 1.8.13-->
|
|
<!-- start footer part -->
|
|
</div> <!-- page-content -->
|
|
<hr class="footer"/><address class="footer"><small>
|
|
Generated on Sat Feb 3 2018 11:08:30 for openNURBS SDK Help by <a href="http://www.doxygen.org/index.html">
|
|
<!-- <img class="footer" src="../../doxygen.png" alt="doxygen"/> -->
|
|
Doxygen
|
|
</a> 1.8.13
|
|
</small></address>
|
|
</div> <!-- container -->
|
|
<!-- doxy-boot -->
|
|
<script type="text/javascript" src="../../doxy-boot.js"></script>
|
|
</body>
|
|
</html>
|