MCPcopy Create free account
hub / github.com/NVIDIAGameWorks/Falcor / as_writable_bytes

Function as_writable_bytes

external/include/fstd/span.h:581–586  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

579 class ElementType, size_t Extent,
580 typename std::enable_if<!std::is_const<ElementType>::value, int>::type = 0>
581span<byte, ((Extent == dynamic_extent) ? dynamic_extent
582 : sizeof(ElementType) * Extent)>
583as_writable_bytes(span<ElementType, Extent> s) noexcept
584{
585 return {reinterpret_cast<byte*>(s.data()), s.size_bytes()};
586}
587
588template <std::size_t N, typename E, std::size_t S>
589constexpr auto get(span<E, S> s) -> decltype(s[N])

Callers

nothing calls this directly

Calls 2

size_bytesMethod · 0.80
dataMethod · 0.45

Tested by

no test coverage detected