29static inline uint8_t asrt_span_unfit_for(
struct asrt_span const* buff, uint32_t size )
31 return (uint32_t) ( buff->
e - buff->
b ) < size ? 1U : 0U;
Scatter-gather buffer: a primary byte range [b, e) followed by rest_count additional spans.
Definition: span.h:37
uint32_t rest_count
Number of entries in rest.
Definition: span.h:41
struct asrt_span * rest
Optional array of additional byte ranges.
Definition: span.h:40
uint8_t * b
Primary buffer start.
Definition: span.h:38
uint8_t * e
Primary buffer one-past-the-end.
Definition: span.h:39
Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee ...
Definition: span.h:23
uint8_t * b
Pointer to the first byte.
Definition: span.h:24
uint8_t * e
One-past-the-end pointer.
Definition: span.h:25