CX Framework
Cross-platform C utility framework
Loading...
Searching...
No Matches
streambuf.h File Reference

Core stream buffer implementation for efficient data streaming. More...

#include <cx/buffer/bufring.h>
#include <cx/stype/stype.h>

Go to the source code of this file.

Functions

StreamBuffer * sbufCreate (size_t targetsz)
 
void sbufRelease (StreamBuffer **sb)
 
void sbufError (StreamBuffer *sb)
 
bool sbufIsPull (StreamBuffer *sb)
 
bool sbufIsPush (StreamBuffer *sb)
 
bool sbufIsError (StreamBuffer *sb)
 
bool sbufIsPFinished (StreamBuffer *sb)
 
bool sbufIsCFinished (StreamBuffer *sb)
 
bool sbufPRegisterPull (StreamBuffer *sb, sbufPullCB ppull, sbufCleanupCB pcleanup, void *ctx)
 
bool sbufPRegisterPush (StreamBuffer *sb, sbufCleanupCB pcleanup, void *ctx)
 
size_t sbufPAvail (StreamBuffer *sb)
 
bool sbufPWrite (StreamBuffer *sb, const uint8 *buf, size_t sz)
 
bool sbufPWriteStr (StreamBuffer *sb, strref str)
 
bool sbufPWriteLine (StreamBuffer *sb, strref str)
 
bool sbufPWriteEOL (StreamBuffer *sb)
 
void sbufPFinish (StreamBuffer *sb)
 
bool sbufCRegisterPull (StreamBuffer *sb, sbufCleanupCB ccleanup, void *ctx)
 
bool sbufCRegisterPush (StreamBuffer *sb, sbufNotifyCB cnotify, sbufCleanupCB ccleanup, void *ctx)
 
bool sbufCRegisterPushDirect (StreamBuffer *sb, sbufPushCB cpush, sbufCleanupCB ccleanup, void *ctx)
 
size_t sbufCAvail (StreamBuffer *sb)
 
bool sbufCRead (StreamBuffer *sb, uint8 *buf, size_t sz, size_t *bytesread)
 
bool sbufCPeek (StreamBuffer *sb, uint8 *buf, size_t off, size_t sz)
 
bool sbufCFeed (StreamBuffer *sb, size_t minsz)
 
bool sbufCSend (StreamBuffer *sb, sbufSendCB func, size_t sz)
 
bool sbufCSkip (StreamBuffer *sb, size_t bytes)
 
void sbufCFinish (StreamBuffer *sb)
 

Detailed Description

Core stream buffer implementation for efficient data streaming.

Definition in file streambuf.h.