OpenImageIO icon indicating copy to clipboard operation
OpenImageIO copied to clipboard

dev: span utility improvements

Open lgritz opened this issue 1 year ago • 0 comments
trafficstars

  • Added as_bytes and as_writable_bytes that convert spans of arbitrary type to spans of std::byte. (This mimics C++20 utilities of the same name.)

  • spancopy, spanset, spanzero: add parameter defaults for the common case of wanting to do the operation on the whole span, also simplify the bound-limiting logic in those functions a bit (but still performing precisely the same task).

lgritz avatar Aug 28 '24 16:08 lgritz