MCPcopy Create free account
hub / github.com/WasmEdge/WasmEdge / as_writable_bytes

Function as_writable_bytes

include/experimental/span.hpp:247–252  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

245}
246
247template <class T, size_t N> auto as_writable_bytes(span<T, N> s) noexcept {
248 constexpr size_t NewExtend =
249 (N == dynamic_extent ? dynamic_extent : sizeof(T) * N);
250 return span<std::byte, NewExtend>(reinterpret_cast<std::byte *>(s.data()),
251 s.size_bytes());
252}
253
254} // namespace cxx20

Callers 5

TESTFunction · 0.85
unalignedCopyFunction · 0.85
unalignedReadFunction · 0.85
randomGetMethod · 0.85
randomFilenameMethod · 0.85

Calls 2

size_bytesMethod · 0.80
dataMethod · 0.45

Tested by

no test coverage detected