Home
last modified time | relevance | path

Searched refs:target_offset (Results 1 – 2 of 2) sorted by relevance

/lib/lwip/lwip/src/apps/snmp/
A Dsnmp_pbuf_stream.c114 u16_t target_offset; in snmp_pbuf_stream_writeto() local
115 struct pbuf *pbuf = pbuf_skip(pbuf_stream->pbuf, pbuf_stream->offset, &target_offset); in snmp_pbuf_stream_writeto()
122 …err = snmp_pbuf_stream_writebuf(target_pbuf_stream, &((u8_t *)pbuf->payload)[target_offset], chunk… in snmp_pbuf_stream_writeto()
/lib/lwip/lwip/src/core/
A Dpbuf.c1273 u16_t target_offset; in pbuf_take_at() local
1274 struct pbuf *q = pbuf_skip(buf, offset, &target_offset); in pbuf_take_at()
1277 if ((q != NULL) && (q->tot_len >= target_offset + len)) { in pbuf_take_at()
1282 LWIP_ASSERT("check pbuf_skip result", target_offset < q->len); in pbuf_take_at()
1283 first_copy_len = (u16_t)LWIP_MIN(q->len - target_offset, len); in pbuf_take_at()
1284 MEMCPY(((u8_t *)q->payload) + target_offset, dataptr, first_copy_len); in pbuf_take_at()

Completed in 8 milliseconds