mirror of
https://github.com/mcneel/opennurbs.git
synced 2026-03-30 15:36:52 +08:00
407 lines
23 KiB
HTML
407 lines
23 KiB
HTML
<!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.14"/>
|
|
<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="dynsections.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 style="height: 56px;">
|
|
<td id="projectalign" style="padding-left: 0.5em;">
|
|
<div id="projectname">openNURBS SDK Help
|
|
 <span id="projectnumber">6.0</span>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<!-- end header part -->
|
|
<!-- Generated by Doxygen 1.8.14 -->
|
|
<script type="text/javascript">
|
|
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
|
var searchBox = new SearchBox("searchBox", "search",false,'Search');
|
|
/* @license-end */
|
|
</script>
|
|
<script type="text/javascript" src="menudata.js"></script>
|
|
<script type="text/javascript" src="menu.js"></script>
|
|
<script type="text/javascript">
|
|
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
|
$(function() {
|
|
initMenu('',true,false,'search.php','Search');
|
|
$(document).ready(function() { init_search(); });
|
|
});
|
|
/* @license-end */</script>
|
|
<div id="main-nav"></div>
|
|
<!-- 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">
|
|
<iframe src="javascript:void(0)" frameborder="0"
|
|
name="MSearchResults" id="MSearchResults">
|
|
</iframe>
|
|
</div>
|
|
|
|
</div><!-- top -->
|
|
<div class="header">
|
|
<div class="summary">
|
|
<a href="#pub-methods">Public Member Functions</a> |
|
|
<a href="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="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="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="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="class_o_n___compress_stream.html#a2ef967209337035985063d0aa8f28d88">Begin</a> ()</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="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="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="class_o_n___compress_stream.html#a0b910180a8c17a3f33c3cb511b886fce">End</a> ()</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="class_o_n___compress_stream.html#a4f45e26920b7c8f971f43de758213cb1">In</a> (ON__UINT64 in_buffer_size, const void *in_buffer)</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="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="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="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="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="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="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="class_o_n___compress_stream.html#a0bf06e8b42af025cac07e081a12a3e20">SetCallback</a> (ON_StreamCallbackFunction callback_function, void *callback_context)</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>Description: Call <a class="el" href="class_o_n___compress_stream.html#a2ef967209337035985063d0aa8f28d88">Begin()</a> one time to initialize the compression calculation. Then call <a class="el" href="class_o_n___compress_stream.html#a4f45e26920b7c8f971f43de758213cb1">In()</a> one or more times to submit the uncompressed stream to the compression calculation. <br />
|
|
When you reach the end of the uncompressed stream, call <a class="el" href="class_o_n___compress_stream.html#a0b910180a8c17a3f33c3cb511b886fce">End()</a>. Returns: true if successful, false if an error occured. </p>
|
|
|
|
</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">
|
|
<p>Returns: Current value of the context pointer passed as the first argument to the compressed stream output handler function. </p>
|
|
|
|
</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">
|
|
<p>Returns: Current value of the callback function for handling the compressed stream. If the callback function is null, the the virtual <a class="el" href="class_o_n___compress_stream.html#a8e1c6b600127cf0c67e2309b91b4093b">Out()</a> function is used to handle </p>
|
|
|
|
</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>Description: After the last call to <a class="el" href="class_o_n___compress_stream.html#a4f45e26920b7c8f971f43de758213cb1">In()</a>, call <a class="el" href="class_o_n___compress_stream.html#a0b910180a8c17a3f33c3cb511b886fce">End()</a>. <br />
|
|
Calling <a class="el" href="class_o_n___compress_stream.html#a0b910180a8c17a3f33c3cb511b886fce">End()</a> may generate zero or more calls to the output stream handler. Returns: true if successful, false if an error occured. </p>
|
|
|
|
</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>Description: Call <a class="el" href="class_o_n___compress_stream.html#a4f45e26920b7c8f971f43de758213cb1">In()</a> one or more times to compress a stream of uncompressed bytes. After the last call to <a class="el" href="class_o_n___compress_stream.html#a4f45e26920b7c8f971f43de758213cb1">In()</a>, call <a class="el" href="class_o_n___compress_stream.html#a0b910180a8c17a3f33c3cb511b886fce">End()</a>. Calling <a class="el" href="class_o_n___compress_stream.html#a4f45e26920b7c8f971f43de758213cb1">In()</a> may generate zero or more calls to the output stream handler. Parameters: in_buffer_size - [in] number of bytes in in_buffer in_buffer - [in] Returns: true if successful, false if an error occured. </p>
|
|
|
|
</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">
|
|
<p>Returns: Then the returned value is the 32-bit crc of the input stream. The crc is updated every time <a class="el" href="class_o_n___compress_stream.html#a4f45e26920b7c8f971f43de758213cb1">In()</a> is called before any calls are made to the output stream handler. If the compression calculation is finished ( <a class="el" href="class_o_n___compress_stream.html#a0b910180a8c17a3f33c3cb511b886fce">End()</a> has been called ), then the returned value is the 32-bit crc of the entire input stream. </p>
|
|
|
|
</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">
|
|
<p>Returns: Then the returned value is the total number bytes in the input stream. The size is updated every time <a class="el" href="class_o_n___compress_stream.html#a4f45e26920b7c8f971f43de758213cb1">In()</a> is called before any calls are made to the output stream handler. If the calculation is finished ( <a class="el" href="class_o_n___compress_stream.html#a0b910180a8c17a3f33c3cb511b886fce">End()</a> has been called ), then the returned value is the total number of bytes in the entire input stream. </p>
|
|
|
|
</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>Description: If an explicit compressed stream output handler is not specified ( <a class="el" href="class_o_n___compress_stream.html#a5098d6c54bfa5ffd41ad4ecb601a317f">CallbackFunction()</a> returns null ), then the virtual <a class="el" href="class_o_n___compress_stream.html#a8e1c6b600127cf0c67e2309b91b4093b">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="class_o_n___compress_stream.html#a8e1c6b600127cf0c67e2309b91b4093b">Out()</a> will occur. Returns: True to continue compressing and false to cancel the compression calculation. Remarks: 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">
|
|
<p>Returns: 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="class_o_n___compress_stream.html#a0b910180a8c17a3f33c3cb511b886fce">End()</a> has been called ), then the returned value is the 32-bit crc of the entire output stream. </p>
|
|
|
|
</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">
|
|
<p>Returns: 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="class_o_n___compress_stream.html#a0b910180a8c17a3f33c3cb511b886fce">End()</a> has been called ), then the returned value is the total number of bytes in the entire output stream. </p>
|
|
|
|
</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>Description: <a class="el" href="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="class_o_n___compress_stream.html#a8e1c6b600127cf0c67e2309b91b4093b">Out()</a> function.</li>
|
|
<li>Providing a callback function. <a class="el" href="class_o_n___compress_stream.html#a0bf06e8b42af025cac07e081a12a3e20">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. Parameters: callback_function - [in] Function to call with sections of the compressed stream. If callback_function is null, then the virtual <a class="el" href="class_o_n___compress_stream.html#a8e1c6b600127cf0c67e2309b91b4093b">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. callback_context - [in] This value is passed as the first argument when calling callback_function or the virutal <a class="el" href="class_o_n___compress_stream.html#a8e1c6b600127cf0c67e2309b91b4093b">Out()</a> function. Returns: True if successful. Remarks: 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. </li>
|
|
</ol>
|
|
|
|
</div>
|
|
</div>
|
|
</div><!-- contents -->
|
|
<!-- start footer part -->
|
|
<hr class="footer"/><address class="footer"><small>
|
|
Generated on Thu Jan 25 2018 17:01:10 for openNURBS SDK Help by  <a href="http://www.doxygen.org/index.html">
|
|
<img class="footer" src="doxygen.png" alt="doxygen"/>
|
|
</a> 1.8.14
|
|
</small></address>
|
|
</body>
|
|
</html>
|