Lines Matching defs:buf
1053 * @param buf the pbuf from which to copy data
1056 * than buf->tot_len will be copied, irrespective of len
1061 pbuf_copy_partial(const struct pbuf *buf, void *dataptr, u16_t len, u16_t offset)
1068 LWIP_ERROR("pbuf_copy_partial: invalid buf", (buf != NULL), return 0;);
1072 for (p = buf; len != 0 && p != NULL; p = p->next) {
1103 * than buf->tot_len will be copied, irrespective of len
1113 LWIP_ERROR("pbuf_get_contiguous: invalid buf", (p != NULL), return NULL;);
1221 * This function can only be used to copy the equivalent of buf->tot_len data.
1223 * @param buf pbuf to fill with data
1230 pbuf_take(struct pbuf *buf, const void *dataptr, u16_t len)
1237 LWIP_ERROR("pbuf_take: invalid buf", (buf != NULL), return ERR_ARG;);
1239 LWIP_ERROR("pbuf_take: buf not large enough", (buf->tot_len >= len), return ERR_MEM;);
1241 if ((buf == NULL) || (dataptr == NULL) || (buf->tot_len < len)) {
1246 for (p = buf; total_copy_len != 0; p = p->next) {
1266 * @param buf pbuf to fill with data
1274 pbuf_take_at(struct pbuf *buf, const void *dataptr, u16_t len, u16_t offset)
1277 struct pbuf *q = pbuf_skip(buf, offset, &target_offset);