added pbuf_try_get_at() (much like pbuf_get_at() but can return out-of-pbuf error)

This commit is contained in:
sg
2016-08-30 21:31:00 +02:00
parent 8d45162a59
commit a08ed9148d
2 changed files with 21 additions and 2 deletions

View File

@@ -250,6 +250,7 @@ void pbuf_split_64k(struct pbuf *p, struct pbuf **rest);
#endif /* LWIP_TCP && TCP_QUEUE_OOSEQ && LWIP_WND_SCALE */
u8_t pbuf_get_at(struct pbuf* p, u16_t offset);
int pbuf_try_get_at(struct pbuf* p, u16_t offset);
void pbuf_put_at(struct pbuf* p, u16_t offset, u8_t data);
u16_t pbuf_memcmp(struct pbuf* p, u16_t offset, const void* s2, u16_t n);
u16_t pbuf_memfind(struct pbuf* p, const void* mem, u16_t mem_len, u16_t start_offset);