sdk/core/core/inc/az_span.h
/**
 * @brief returns a span with @n positions are dropped.
 *
 * If the @n is greater than @span.size than an empty span is returned
 */
@brief returns a span with @n positions are dropped.
If the @n is greater than @span.size than an empty span is returned
@brief returns a span with @n positions are dropped . If the @n is greater than @span . size than an empty span is returned
static inline az_const_span az_const_span_drop(az_const_span const span, size_t const n) {
  if (span.size <= n) {
    return (az_const_span){ .begin = NULL, .size = 0 };
  }
  return (az_const_span){ .begin = span.begin + n, .size = span.size - n };
}
static inline az_const_span az_const_span_drop ( az_const_span const span , size_t const n ) { if ( span . size <= n ) { return ( az_const_span ) { . begin = NULL , . size = 0 } ; } return ( az_const_span ) { . begin = span . begin + n , . size = span . size - n } ; }
@brief returns a span with @n positions are dropped.
@brief returns a span with @n positions are dropped .