Lines Matching defs:offset
47 snmp_pbuf_stream_init(struct snmp_pbuf_stream *pbuf_stream, struct pbuf *p, u16_t offset, u16_t length)
49 pbuf_stream->offset = offset;
63 if (pbuf_copy_partial(pbuf_stream->pbuf, data, 1, pbuf_stream->offset) == 0) {
67 pbuf_stream->offset++;
86 if (pbuf_take_at(pbuf_stream->pbuf, buf, buf_len, pbuf_stream->offset) != ERR_OK) {
90 pbuf_stream->offset += buf_len;
115 struct pbuf *pbuf = pbuf_skip(pbuf_stream->pbuf, pbuf_stream->offset, &target_offset);
127 pbuf_stream->offset += chunk_len;
136 snmp_pbuf_stream_seek(struct snmp_pbuf_stream *pbuf_stream, s32_t offset)
138 if ((offset < 0) || (offset > pbuf_stream->length)) {
143 pbuf_stream->offset += (u16_t)offset;
144 pbuf_stream->length -= (u16_t)offset;
150 snmp_pbuf_stream_seek_abs(struct snmp_pbuf_stream *pbuf_stream, u32_t offset)
152 s32_t rel_offset = offset - pbuf_stream->offset;