MCPcopy Create free account
hub / github.com/FastFlowLM/FastFlowLM / copy_from

Method copy_from

src/include/buffer.hpp:394–399  ·  view source on GitHub ↗

\brief copy from \param vec the vector

Source from the content-addressed store, hash-verified

392 /// \brief copy from
393 /// \param vec the vector
394 void copy_from(const std::vector<T>& vec) {
395 if (vec.size() * sizeof(T) != this->size_) {
396 throw std::runtime_error("Size mismatch in copy_from(vector)");
397 }
398 std::memcpy(data_, vec.data(), size_);
399 }
400
401 /// \brief cast to another type
402 /// \tparam U the type

Callers

nothing calls this directly

Calls 5

sizeMethod · 0.95
sizeFunction · 0.85
bdataMethod · 0.80
sizeMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected