コード例 #1
0
ファイル: transport.c プロジェクト: gz/aos10
void
clearbuf(struct pbuf *pbuf)
{
    /* clear the buffer and reset the pos */
    memset(&pbuf->payload, 0, SETBUF_LEN );
    resetbuf(pbuf);
}
コード例 #2
0
ファイル: ArdLog.cpp プロジェクト: maciejmiklas/ArdLog
static inline void reset_pgbuf() {
	resetbuf(pgbuf, PGBUF_SIZE);
}
コード例 #3
0
ファイル: ArdLog.cpp プロジェクト: maciejmiklas/ArdLog
static inline void reset_sbuf() {
	resetbuf(sbuf, SBUF_SIZE);
}