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