Exemple #1
0
void
clearbuf(struct pbuf *pbuf)
{
    /* clear the buffer and reset the pos */
    memset(&pbuf->payload, 0, SETBUF_LEN );
    resetbuf(pbuf);
}
Exemple #2
0
static inline void reset_pgbuf() {
	resetbuf(pgbuf, PGBUF_SIZE);
}
Exemple #3
0
static inline void reset_sbuf() {
	resetbuf(sbuf, SBUF_SIZE);
}