⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ebbuff.html

📁 eybuild中文手册 eybuild中文手册 eybuild中文手册
💻 HTML
📖 第 1 页 / 共 2 页
字号:

</blockquote><h4>DESCRIPTION</h4><blockquote><p>
set allow auto flush or not 
<p>
</blockquote><h4>RETURNS</h4><blockquote><p>
TRUE/FALSE
</blockquote><h4>SEE ALSO</h4><blockquote><p>
<b><a href="./ebbuff.html#top">ebbuff</a></b>

<hr>
<a name="ebGetBufRemain"></a>
<p align=right>
<a href="rtnIndex.htm"><i>eyBuildLib :  Routines</i></a></p>

</blockquote><h1>ebGetBufRemain(&nbsp;)</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote>  
<p><strong>ebGetBufRemain(&nbsp;)</strong> - get the remain size for data write to avaiable</p>

</blockquote><h4>SYNOPSIS</h4><blockquote><p>
<pre>int ebGetBufRemain
    (
    void * ebfp
    )
</pre>

</blockquote><h4>DESCRIPTION</h4><blockquote><p>
get the remain size for data write to avaiable
<p>
</blockquote><h4>RETURNS</h4><blockquote><p>
the size write avaiable, or <= 0 if buffer size not enough
</blockquote><h4>SEE ALSO</h4><blockquote><p>
<b><a href="./ebbuff.html#top">ebbuff</a></b>

<hr>
<a name="ebBufFlush"></a>
<p align=right>
<a href="rtnIndex.htm"><i>eyBuildLib :  Routines</i></a></p>

</blockquote><h1>ebBufFlush(&nbsp;)</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote>  
<p><strong>ebBufFlush(&nbsp;)</strong> - flush eybuild buffer</p>

</blockquote><h4>SYNOPSIS</h4><blockquote><p>
<pre>int ebBufFlush
    (
    void * ebfp
    )
</pre>

</blockquote><h4>DESCRIPTION</h4><blockquote><p>
This routine writes data in eybuild buffer to stdout
<p>
</blockquote><h4>RETURNS</h4><blockquote><p>
OK/ERROR
</blockquote><h4>SEE ALSO</h4><blockquote><p>
<b><a href="./ebbuff.html#top">ebbuff</a></b>

<hr>
<a name="ebBufIsFlushed"></a>
<p align=right>
<a href="rtnIndex.htm"><i>eyBuildLib :  Routines</i></a></p>

</blockquote><h1>ebBufIsFlushed(&nbsp;)</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote>  
<p><strong>ebBufIsFlushed(&nbsp;)</strong> - check buffer ever flushed or not</p>

</blockquote><h4>SYNOPSIS</h4><blockquote><p>
<pre>BOOL ebBufIsFlushed
    (
    void * ebfp
    )
</pre>

</blockquote><h4>DESCRIPTION</h4><blockquote><p>
</blockquote><h4>RETURNS</h4><blockquote><p>
TRUE/FALSE
</blockquote><h4>SEE ALSO</h4><blockquote><p>
<b><a href="./ebbuff.html#top">ebbuff</a></b>

<hr>
<a name="ebCheckBufSize"></a>
<p align=right>
<a href="rtnIndex.htm"><i>eyBuildLib :  Routines</i></a></p>

</blockquote><h1>ebCheckBufSize(&nbsp;)</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote>  
<p><strong>ebCheckBufSize(&nbsp;)</strong> - check tlv buffer size</p>

</blockquote><h4>SYNOPSIS</h4><blockquote><p>
<pre>int ebCheckBufSize
    (
    void * ebfp
    )
</pre>

</blockquote><h4>DESCRIPTION</h4><blockquote><p>
if buffer is full, it will try to flush it and the retry check once
<p>
</blockquote><h4>RETURNS</h4><blockquote><p>
size avaiable write to, or ERROR when flush buffer error
</blockquote><h4>SEE ALSO</h4><blockquote><p>
<b><a href="./ebbuff.html#top">ebbuff</a></b>

<hr>
<a name="ebBufStringAdd"></a>
<p align=right>
<a href="rtnIndex.htm"><i>eyBuildLib :  Routines</i></a></p>

</blockquote><h1>ebBufStringAdd(&nbsp;)</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote>  
<p><strong>ebBufStringAdd(&nbsp;)</strong> - add a const string to the eybuild buffer</p>

</blockquote><h4>SYNOPSIS</h4><blockquote><p>
<pre>int ebBufStringAdd
    (
    void * ebfp,              /* eybuild buffer descriptor */
    char * pstr               /* const string */
    )
</pre>

</blockquote><h4>DESCRIPTION</h4><blockquote><p>
this routine let the value pointer of tlv pointer to that const string,
but will not free it if is allocated by <b>malloc(&nbsp;)</b>, <b>alloc(&nbsp;)</b>, <b>realloc(&nbsp;)</b>,
so the area parameter <b>pstr</b> pointer to should better be a const string.
<p>
After call <b><a href="./ebbuff.html#ebBufFlush">ebBufFlush</a>(&nbsp;)</b>, that tlv will be set to zero.
<p>
</blockquote><h4>RETURNS</h4><blockquote><p>
OK/ERROR
</blockquote><h4>SEE ALSO</h4><blockquote><p>
<b><a href="./ebbuff.html#top">ebbuff</a></b>

<hr>
<a name="ebprintf"></a>
<p align=right>
<a href="rtnIndex.htm"><i>eyBuildLib :  Routines</i></a></p>

</blockquote><h1>ebprintf(&nbsp;)</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote>  
<p><strong>ebprintf(&nbsp;)</strong> - write a formatted string to the eybuild buffer</p>

</blockquote><h4>SYNOPSIS</h4><blockquote><p>
<pre>int ebprintf
    (
    void *       ebfp,        /* eybuild buffer descriptor */
    const char * fmt,         /* format string to write */
                 ...          /* optional arguments to format string */
    )
</pre>

</blockquote><h4>DESCRIPTION</h4><blockquote><p>
This routine writes a formatted string to a specified file descriptor. 
Its function and syntax are otherwise identical to printf( ). 
<p>
</blockquote><h4>RETURNS</h4><blockquote><p>
<p>
The number of characters output, or ERROR if there is an error during output.
<p>
</blockquote><h4>SEE ALSO</h4><blockquote><p>
<b><a href="./ebbuff.html#top">ebbuff</a></b>, <b>printf(&nbsp;)</b>, <b>fprintf(&nbsp;)</b>

<hr>
<a name="ebvprintf"></a>
<p align=right>
<a href="rtnIndex.htm"><i>eyBuildLib :  Routines</i></a></p>

</blockquote><h1>ebvprintf(&nbsp;)</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote>  
<p><strong>ebvprintf(&nbsp;)</strong> - write a formatted string to the eybuild buffer</p>

</blockquote><h4>SYNOPSIS</h4><blockquote><p>
<pre>int ebvprintf
    (
    void *       ebfp,        /* eybuild buffer descriptor */
    const char * fmt,         /* format string to write */
    va_list      ar           /* optional arguments to format string */
    )
</pre>

</blockquote><h4>DESCRIPTION</h4><blockquote><p>
</blockquote><h4>SEE ALSO</h4><blockquote><p>
<b><a href="./ebbuff.html#top">ebbuff</a></b>, <b>printf(&nbsp;)</b>, <b>fprintf(&nbsp;)</b>

<hr>
<a name="ebWriteBlock"></a>
<p align=right>
<a href="rtnIndex.htm"><i>eyBuildLib :  Routines</i></a></p>

</blockquote><h1>ebWriteBlock(&nbsp;)</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote>  
<p><strong>ebWriteBlock(&nbsp;)</strong> - write binary data block</p>

</blockquote><h4>SYNOPSIS</h4><blockquote><p>
<pre>int ebWriteBlock
    (
    void * ebfp,              /* eybuild buffer descriptor */
    void * data,              /* data block */
    size_t size
    )
</pre>

</blockquote><h4>DESCRIPTION</h4><blockquote><p>
This routine is to writes a write binary data block, 
it will force flush current buffer before write data.
<p>
</blockquote><h4>NOTE</h4><blockquote><p>
<p>
block data will not be buffered by ebio buffer.
<p>
</blockquote><h4>RETURNS</h4><blockquote><p>
The number data output, or ERROR during output.
<p>
</blockquote><h4>SEE ALSO</h4><blockquote><p>
<b><a href="./ebbuff.html#top">ebbuff</a></b>, <b><a href="./ebbuff.html#ebprintf">ebprintf</a>(&nbsp;)</b>

</body>
</html>



⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -