packetbuf: add packetbuf_remaininglen()
packetbuf_freelen() returns the length of free space in packetbuf.
This commit is contained in:
parent
c48cfb6b9d
commit
aa1f408825
2 changed files with 13 additions and 0 deletions
|
@ -184,6 +184,12 @@ packetbuf_totlen(void)
|
|||
return packetbuf_hdrlen() + packetbuf_datalen();
|
||||
}
|
||||
/*---------------------------------------------------------------------------*/
|
||||
uint16_t
|
||||
packetbuf_remaininglen(void)
|
||||
{
|
||||
return PACKETBUF_SIZE - packetbuf_totlen();
|
||||
}
|
||||
/*---------------------------------------------------------------------------*/
|
||||
void
|
||||
packetbuf_attr_clear(void)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue