Esempio n. 1
0
File: transport.c Progetto: gz/aos10
void
clearbuf(struct pbuf *pbuf)
{
    /* clear the buffer and reset the pos */
    memset(&pbuf->payload, 0, SETBUF_LEN );
    resetbuf(pbuf);
}
Esempio n. 2
0
static inline void reset_pgbuf() {
	resetbuf(pgbuf, PGBUF_SIZE);
}
Esempio n. 3
0
static inline void reset_sbuf() {
	resetbuf(sbuf, SBUF_SIZE);
}