<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN" 
   "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">

<refentry id="init_output_sstream"> <!-- ID for references -->

<refmeta>
<refentrytitle>init_output_sstream</refentrytitle> <!-- title shown in references -->
<manvolnum>3</manvolnum></refmeta> <!-- man volume id (3 for libraries) -->

<refnamediv>
<refname>init_output_sstream</refname> <!-- function name -->
<refpurpose>initializes serialization stream for output</refpurpose> <!-- short function description -->
</refnamediv>

<refsynopsisdiv><funcsynopsis>
<funcsynopsisinfo>
#include &lt;cds/serialize.h&gt; <!-- included headers -->
</funcsynopsisinfo>

<funcprototype> <!-- function prototype -->
  <funcdef>int <function>init_output_sstream</function></funcdef>
  <paramdef>sstream_t *<parameter>ss</parameter></paramdef>
  <paramdef>int <parameter>out_buff_resize</parameter></paramdef>
</funcprototype>

</funcsynopsis></refsynopsisdiv>

<refsect1><title>Description</title>
<para>Initializes given serialization stream for output. Parameter
<parameter>out_buff_resize</parameter> is stored into
<structname>sstream_t</structname> structure and specifies the size of newly
allocated data buffers. Data buffers are allocated when needed during output.
<!-- detailed description -->
</para>

</refsect1>

<refsect1><title>Return value</title>
<para>
Returns 0 on success, non-zero on error.
<!-- return value description -->
</para>
</refsect1>

<refsect1><title>See Also</title>
<para>
<!-- references to other pages -->
<xref linkend="sstream_t"/>, <xref linkend="dstring_t"/>
</para>
</refsect1>

</refentry>