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