Current File : //usr/local/apps/share/doc/freetds/reference/a00294.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.8"/>
<title>FreeTDS API: src/tds/stream.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>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</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 style="padding-left: 0.5em;">
   <div id="projectname">FreeTDS API
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.8 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>File&#160;Members</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Macros</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark">&#160;</span>Modules</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(10)"><span class="SelectionMark">&#160;</span>Pages</a></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 id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_000003.html">src</a></li><li class="navelem"><a class="el" href="dir_000011.html">tds</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">stream.c File Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>Handle stream of data.  
<a href="#details">More...</a></p>
<div class="textblock"><code>#include &lt;config.h&gt;</code><br />
<code>#include &lt;assert.h&gt;</code><br />
<code>#include &lt;<a class="el" href="a00217_source.html">freetds/tds.h</a>&gt;</code><br />
<code>#include &lt;freetds/iconv.h&gt;</code><br />
<code>#include &lt;freetds/stream.h&gt;</code><br />
</div><div class="textblock"><div class="dynheader">
Include dependency graph for stream.c:</div>
<div class="dyncontent">
<div class="center"><iframe scrolling="no" frameborder="0" src="a00404.svg" width="1639" height="336"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
</div>
</div>
</div><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:a9d8eb43a81ff58ab423dce0ce95b9564"><td class="memItemLeft" align="right" valign="top">TDSRET&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00294.html#a9d8eb43a81ff58ab423dce0ce95b9564">tds_convert_stream</a> (<a class="el" href="a00168.html">TDSSOCKET</a> *tds, <a class="el" href="a00182.html">TDSICONV</a> *char_conv, TDS_ICONV_DIRECTION direction, <a class="el" href="a00143.html">TDSINSTREAM</a> *istream, <a class="el" href="a00153.html">TDSOUTSTREAM</a> *ostream)</td></tr>
<tr class="memdesc:a9d8eb43a81ff58ab423dce0ce95b9564"><td class="mdescLeft">&#160;</td><td class="mdescRight">Reads and writes from a stream converting characters.  <a href="#a9d8eb43a81ff58ab423dce0ce95b9564">More...</a><br /></td></tr>
<tr class="separator:a9d8eb43a81ff58ab423dce0ce95b9564"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2b8e3379c38cd2bce28b90cb199c2aa9"><td class="memItemLeft" align="right" valign="top">TDSRET&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00294.html#a2b8e3379c38cd2bce28b90cb199c2aa9">tds_copy_stream</a> (<a class="el" href="a00168.html">TDSSOCKET</a> *tds, <a class="el" href="a00143.html">TDSINSTREAM</a> *istream, <a class="el" href="a00153.html">TDSOUTSTREAM</a> *ostream)</td></tr>
<tr class="memdesc:a2b8e3379c38cd2bce28b90cb199c2aa9"><td class="mdescLeft">&#160;</td><td class="mdescRight">Reads and writes from a stream to another.  <a href="#a2b8e3379c38cd2bce28b90cb199c2aa9">More...</a><br /></td></tr>
<tr class="separator:a2b8e3379c38cd2bce28b90cb199c2aa9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abc3a77c8aa28842e7f28583cbabc1415"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00294.html#abc3a77c8aa28842e7f28583cbabc1415">tds_datain_stream_init</a> (<a class="el" href="a00128.html">TDSDATAINSTREAM</a> *stream, <a class="el" href="a00168.html">TDSSOCKET</a> *tds, size_t wire_size)</td></tr>
<tr class="memdesc:abc3a77c8aa28842e7f28583cbabc1415"><td class="mdescLeft">&#160;</td><td class="mdescRight">Initialize a data input stream.  <a href="#abc3a77c8aa28842e7f28583cbabc1415">More...</a><br /></td></tr>
<tr class="separator:abc3a77c8aa28842e7f28583cbabc1415"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a04b537d889f7d4c9b9701eb81baf7efd"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a04b537d889f7d4c9b9701eb81baf7efd"></a>
static int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00294.html#a04b537d889f7d4c9b9701eb81baf7efd">tds_datain_stream_read</a> (<a class="el" href="a00143.html">TDSINSTREAM</a> *stream, void *ptr, size_t len)</td></tr>
<tr class="memdesc:a04b537d889f7d4c9b9701eb81baf7efd"><td class="mdescLeft">&#160;</td><td class="mdescRight">Reads data from network for input stream. <br /></td></tr>
<tr class="separator:a04b537d889f7d4c9b9701eb81baf7efd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa038a9125979f8f0915dbd53cbf27e5a"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00294.html#aa038a9125979f8f0915dbd53cbf27e5a">tds_dataout_stream_init</a> (<a class="el" href="a00129.html">TDSDATAOUTSTREAM</a> *stream, <a class="el" href="a00168.html">TDSSOCKET</a> *tds)</td></tr>
<tr class="memdesc:aa038a9125979f8f0915dbd53cbf27e5a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Initialize a data output stream.  <a href="#aa038a9125979f8f0915dbd53cbf27e5a">More...</a><br /></td></tr>
<tr class="separator:aa038a9125979f8f0915dbd53cbf27e5a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae38a590ee08cf398e7adef536ac94538"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ae38a590ee08cf398e7adef536ac94538"></a>
static int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00294.html#ae38a590ee08cf398e7adef536ac94538">tds_dataout_stream_write</a> (<a class="el" href="a00153.html">TDSOUTSTREAM</a> *stream, size_t len)</td></tr>
<tr class="memdesc:ae38a590ee08cf398e7adef536ac94538"><td class="mdescLeft">&#160;</td><td class="mdescRight">Writes data to network for output stream. <br /></td></tr>
<tr class="separator:ae38a590ee08cf398e7adef536ac94538"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4f9e40da6941cb9407d0da5bc3030517"><td class="memItemLeft" align="right" valign="top">TDSRET&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00294.html#a4f9e40da6941cb9407d0da5bc3030517">tds_dynamic_stream_init</a> (<a class="el" href="a00135.html">TDSDYNAMICSTREAM</a> *stream, void **ptr, size_t allocated)</td></tr>
<tr class="memdesc:a4f9e40da6941cb9407d0da5bc3030517"><td class="mdescLeft">&#160;</td><td class="mdescRight">Initialize a dynamic output stream.  <a href="#a4f9e40da6941cb9407d0da5bc3030517">More...</a><br /></td></tr>
<tr class="separator:a4f9e40da6941cb9407d0da5bc3030517"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abaf688c85ea04a2392103d519a55d04e"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="abaf688c85ea04a2392103d519a55d04e"></a>
static int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00294.html#abaf688c85ea04a2392103d519a55d04e">tds_dynamic_stream_write</a> (<a class="el" href="a00153.html">TDSOUTSTREAM</a> *stream, size_t len)</td></tr>
<tr class="memdesc:abaf688c85ea04a2392103d519a55d04e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Writes data to a dynamic allocated buffer. <br /></td></tr>
<tr class="separator:abaf688c85ea04a2392103d519a55d04e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa9e1e45f0305622dd6aed9f8fe158581"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00294.html#aa9e1e45f0305622dd6aed9f8fe158581">tds_staticin_stream_init</a> (<a class="el" href="a00169.html">TDSSTATICINSTREAM</a> *stream, const void *ptr, size_t len)</td></tr>
<tr class="memdesc:aa9e1e45f0305622dd6aed9f8fe158581"><td class="mdescLeft">&#160;</td><td class="mdescRight">Initialize an input stream for read from a static allocated buffer.  <a href="#aa9e1e45f0305622dd6aed9f8fe158581">More...</a><br /></td></tr>
<tr class="separator:aa9e1e45f0305622dd6aed9f8fe158581"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a76b02f1fa5b79dc7e1ef2651a9afe3f7"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a76b02f1fa5b79dc7e1ef2651a9afe3f7"></a>
static int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00294.html#a76b02f1fa5b79dc7e1ef2651a9afe3f7">tds_staticin_stream_read</a> (<a class="el" href="a00143.html">TDSINSTREAM</a> *stream, void *ptr, size_t len)</td></tr>
<tr class="memdesc:a76b02f1fa5b79dc7e1ef2651a9afe3f7"><td class="mdescLeft">&#160;</td><td class="mdescRight">Reads data from a static allocated buffer. <br /></td></tr>
<tr class="separator:a76b02f1fa5b79dc7e1ef2651a9afe3f7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9fe0d3799d2e3bde49b614c9d0c3785d"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00294.html#a9fe0d3799d2e3bde49b614c9d0c3785d">tds_staticout_stream_init</a> (<a class="el" href="a00170.html">TDSSTATICOUTSTREAM</a> *stream, void *ptr, size_t len)</td></tr>
<tr class="memdesc:a9fe0d3799d2e3bde49b614c9d0c3785d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Initialize an output stream for write into a static allocated buffer.  <a href="#a9fe0d3799d2e3bde49b614c9d0c3785d">More...</a><br /></td></tr>
<tr class="separator:a9fe0d3799d2e3bde49b614c9d0c3785d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1d92ebe06f18378ac17ccfd20db05126"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a1d92ebe06f18378ac17ccfd20db05126"></a>
static int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00294.html#a1d92ebe06f18378ac17ccfd20db05126">tds_staticout_stream_write</a> (<a class="el" href="a00153.html">TDSOUTSTREAM</a> *stream, size_t len)</td></tr>
<tr class="memdesc:a1d92ebe06f18378ac17ccfd20db05126"><td class="mdescLeft">&#160;</td><td class="mdescRight">Writes data to a static allocated buffer. <br /></td></tr>
<tr class="separator:a1d92ebe06f18378ac17ccfd20db05126"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Handle stream of data. </p>
</div><h2 class="groupheader">Function Documentation</h2>
<a class="anchor" id="a9d8eb43a81ff58ab423dce0ce95b9564"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">TDSRET tds_convert_stream </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00168.html">TDSSOCKET</a> *&#160;</td>
          <td class="paramname"><em>tds</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a00182.html">TDSICONV</a> *&#160;</td>
          <td class="paramname"><em>char_conv</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">TDS_ICONV_DIRECTION&#160;</td>
          <td class="paramname"><em>direction</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a00143.html">TDSINSTREAM</a> *&#160;</td>
          <td class="paramname"><em>istream</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a00153.html">TDSOUTSTREAM</a> *&#160;</td>
          <td class="paramname"><em>ostream</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Reads and writes from a stream converting characters. </p>
<p>Convert a stream from istream to ostream using a specific conversion.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">tds</td><td>A pointer to the TDSSOCKET structure managing a client/server operation. </td></tr>
    <tr><td class="paramname">char_conv</td><td>conversion structure </td></tr>
    <tr><td class="paramname">direction</td><td>specify conversion to server or from server </td></tr>
    <tr><td class="paramname">istream</td><td>input stream </td></tr>
    <tr><td class="paramname">ostream</td><td>output stream </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>TDS_SUCCESS of TDS_FAIL </dd></dl>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><iframe scrolling="no" frameborder="0" src="a00294_a9d8eb43a81ff58ab423dce0ce95b9564_cgraph.svg" width="958" height="263"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
</div>
</div>
</p>

<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><iframe scrolling="no" frameborder="0" src="a00294_a9d8eb43a81ff58ab423dce0ce95b9564_icgraph.svg" width="1419" height="742"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
</div>
</div>
</p>

</div>
</div>
<a class="anchor" id="a2b8e3379c38cd2bce28b90cb199c2aa9"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">TDSRET tds_copy_stream </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00168.html">TDSSOCKET</a> *&#160;</td>
          <td class="paramname"><em>tds</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a00143.html">TDSINSTREAM</a> *&#160;</td>
          <td class="paramname"><em>istream</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a00153.html">TDSOUTSTREAM</a> *&#160;</td>
          <td class="paramname"><em>ostream</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Reads and writes from a stream to another. </p>
<p>Copy data from a stream to another.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">tds</td><td>A pointer to the TDSSOCKET structure managing a client/server operation. </td></tr>
    <tr><td class="paramname">istream</td><td>input stream </td></tr>
    <tr><td class="paramname">ostream</td><td>output stream </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>TDS_SUCCESS or TDS_FAIL </dd></dl>

<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><iframe scrolling="no" frameborder="0" src="a00294_a2b8e3379c38cd2bce28b90cb199c2aa9_icgraph.svg" width="650" height="38"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
</div>
</div>
</p>

</div>
</div>
<a class="anchor" id="abc3a77c8aa28842e7f28583cbabc1415"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void tds_datain_stream_init </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00128.html">TDSDATAINSTREAM</a> *&#160;</td>
          <td class="paramname"><em>stream</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a00168.html">TDSSOCKET</a> *&#160;</td>
          <td class="paramname"><em>tds</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>wire_size</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Initialize a data input stream. </p>
<p>This stream read data from network. </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">stream</td><td>input stream to initialize </td></tr>
    <tr><td class="paramname">tds</td><td>A pointer to the TDSSOCKET structure managing a client/server operation. </td></tr>
    <tr><td class="paramname">wire_size</td><td>byte to read </td></tr>
  </table>
  </dd>
</dl>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><iframe scrolling="no" frameborder="0" src="a00294_abc3a77c8aa28842e7f28583cbabc1415_cgraph.svg" width="710" height="38"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
</div>
</div>
</p>

<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><iframe scrolling="no" frameborder="0" src="a00294_abc3a77c8aa28842e7f28583cbabc1415_icgraph.svg" width="759" height="240"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
</div>
</div>
</p>

</div>
</div>
<a class="anchor" id="aa038a9125979f8f0915dbd53cbf27e5a"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void tds_dataout_stream_init </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00129.html">TDSDATAOUTSTREAM</a> *&#160;</td>
          <td class="paramname"><em>stream</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a00168.html">TDSSOCKET</a> *&#160;</td>
          <td class="paramname"><em>tds</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Initialize a data output stream. </p>
<p>This stream writes data to network. </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">stream</td><td>output stream to initialize </td></tr>
    <tr><td class="paramname">tds</td><td>A pointer to the TDSSOCKET structure managing a client/server operation. </td></tr>
  </table>
  </dd>
</dl>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><iframe scrolling="no" frameborder="0" src="a00294_aa038a9125979f8f0915dbd53cbf27e5a_cgraph.svg" width="379" height="52"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
</div>
</div>
</p>

<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><iframe scrolling="no" frameborder="0" src="a00294_aa038a9125979f8f0915dbd53cbf27e5a_icgraph.svg" width="1260" height="472"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
</div>
</div>
</p>

</div>
</div>
<a class="anchor" id="a4f9e40da6941cb9407d0da5bc3030517"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">TDSRET tds_dynamic_stream_init </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00135.html">TDSDYNAMICSTREAM</a> *&#160;</td>
          <td class="paramname"><em>stream</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">void **&#160;</td>
          <td class="paramname"><em>ptr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>allocated</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Initialize a dynamic output stream. </p>
<p>This stream write data into a dynamic allocated buffer. </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">stream</td><td>stream to initialize </td></tr>
    <tr><td class="paramname">ptr</td><td>pointer to pointer to buffer to fill. Buffer will be extended as needed </td></tr>
    <tr><td class="paramname">allocated</td><td>bytes initialially allocated for the buffer. Useful to reuse buffers </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>TDS_SUCCESS on success, TDS_FAIL otherwise </dd></dl>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><iframe scrolling="no" frameborder="0" src="a00294_a4f9e40da6941cb9407d0da5bc3030517_cgraph.svg" width="528" height="52"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
</div>
</div>
</p>

<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><iframe scrolling="no" frameborder="0" src="a00294_a4f9e40da6941cb9407d0da5bc3030517_icgraph.svg" width="698" height="38"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
</div>
</div>
</p>

</div>
</div>
<a class="anchor" id="aa9e1e45f0305622dd6aed9f8fe158581"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void tds_staticin_stream_init </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00169.html">TDSSTATICINSTREAM</a> *&#160;</td>
          <td class="paramname"><em>stream</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const void *&#160;</td>
          <td class="paramname"><em>ptr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>len</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Initialize an input stream for read from a static allocated buffer. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">stream</td><td>stream to initialize </td></tr>
    <tr><td class="paramname">ptr</td><td>buffer to read from </td></tr>
    <tr><td class="paramname">len</td><td>buffer size in bytes </td></tr>
  </table>
  </dd>
</dl>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><iframe scrolling="no" frameborder="0" src="a00294_aa9e1e45f0305622dd6aed9f8fe158581_cgraph.svg" width="411" height="38"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
</div>
</div>
</p>

<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><iframe scrolling="no" frameborder="0" src="a00294_aa9e1e45f0305622dd6aed9f8fe158581_icgraph.svg" width="1258" height="472"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
</div>
</div>
</p>

</div>
</div>
<a class="anchor" id="a9fe0d3799d2e3bde49b614c9d0c3785d"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void tds_staticout_stream_init </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00170.html">TDSSTATICOUTSTREAM</a> *&#160;</td>
          <td class="paramname"><em>stream</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">void *&#160;</td>
          <td class="paramname"><em>ptr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>len</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Initialize an output stream for write into a static allocated buffer. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">stream</td><td>stream to initialize </td></tr>
    <tr><td class="paramname">ptr</td><td>buffer to write to </td></tr>
    <tr><td class="paramname">len</td><td>buffer size in bytes </td></tr>
  </table>
  </dd>
</dl>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><iframe scrolling="no" frameborder="0" src="a00294_a9fe0d3799d2e3bde49b614c9d0c3785d_cgraph.svg" width="390" height="52"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
</div>
</div>
</p>

<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><iframe scrolling="no" frameborder="0" src="a00294_a9fe0d3799d2e3bde49b614c9d0c3785d_icgraph.svg" width="772" height="240"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
</div>
</div>
</p>

</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Wed Feb 15 2017 09:01:18 for FreeTDS API by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.8
</small></address>
</body>
</html>