MCPcopy Create free account
hub / github.com/TombEngine/TombEngine / CopyFromSpanImpl

Method CopyFromSpanImpl

Libs/flatbuffers/flatbuffers.h:577–583  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

575 }
576
577 void CopyFromSpanImpl(flatbuffers::true_type,
578 flatbuffers::span<const T, length> src) {
579 // Use std::memcpy() instead of std::copy() to avoid preformance degradation
580 // due to aliasing if T is char or unsigned char.
581 // The size is known at compile time, so memcpy would be inlined.
582 std::memcpy(data(), src.data(), length * sizeof(T));
583 }
584
585 // Copy data from flatbuffers::span with endian conversion.
586 void CopyFromSpanImpl(flatbuffers::false_type,

Callers

nothing calls this directly

Calls 2

dataFunction · 0.70
dataMethod · 0.45

Tested by

no test coverage detected