📄 ebbuff.html
字号:
</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( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote>
<p><strong>ebGetBufRemain( )</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( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote>
<p><strong>ebBufFlush( )</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( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote>
<p><strong>ebBufIsFlushed( )</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( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote>
<p><strong>ebCheckBufSize( )</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( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote>
<p><strong>ebBufStringAdd( )</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( )</b>, <b>alloc( )</b>, <b>realloc( )</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>( )</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( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote>
<p><strong>ebprintf( )</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( )</b>, <b>fprintf( )</b>
<hr>
<a name="ebvprintf"></a>
<p align=right>
<a href="rtnIndex.htm"><i>eyBuildLib : Routines</i></a></p>
</blockquote><h1>ebvprintf( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote>
<p><strong>ebvprintf( )</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( )</b>, <b>fprintf( )</b>
<hr>
<a name="ebWriteBlock"></a>
<p align=right>
<a href="rtnIndex.htm"><i>eyBuildLib : Routines</i></a></p>
</blockquote><h1>ebWriteBlock( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote>
<p><strong>ebWriteBlock( )</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>( )</b>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -