예제 #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
static inline void reset_pgbuf() {
	resetbuf(pgbuf, PGBUF_SIZE);
}
예제 #3
0
static inline void reset_sbuf() {
	resetbuf(sbuf, SBUF_SIZE);
}