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

Function as_bytes

external/include/fstd/span.h:571–576  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

569
570template <typename ElementType, std::size_t Extent>
571span<const byte, ((Extent == dynamic_extent) ? dynamic_extent
572 : sizeof(ElementType) * Extent)>
573as_bytes(span<ElementType, Extent> s) noexcept
574{
575 return {reinterpret_cast<const byte*>(s.data()), s.size_bytes()};
576}
577
578template <
579 class ElementType, size_t Extent,

Callers

nothing calls this directly

Calls 2

size_bytesMethod · 0.80
dataMethod · 0.45

Tested by

no test coverage detected