Lines Matching defs:offset
123 * sshp_buf_span_from() - Initialize a span from the given buffer and offset.
125 * @offset: The offset in the buffer at which the span should start.
128 * Initializes the provided span to point to the memory at the given offset in
130 * used in the buffer after the offset (i.e. bytes remaining after the
131 * offset).
133 * Warning: This function does not validate that @offset is less than or equal
137 static inline void sshp_buf_span_from(struct sshp_buf *buf, size_t offset,
140 span->ptr = buf->ptr + offset;
141 span->len = buf->len - offset;