eCosPro® Reference Manual
Prev |  | Next

# netbuf_len()

## Name

netbuf_len() -- Obtain the total length of a netbuf

## Synopsis

``u16_t netbuf_len`(struct netbuf *buf);`

## Description

Returns the total length of the data in the netbuf buf, even if the netbuf is fragmented. For a fragmented netbuf, the value obtained by calling this function is not the same as the size of the first fragment in the netbuf.

Prev | Home | Next
netbuf_ref() | Up | netbuf_data()