MCPcopy Create free account
hub / github.com/Snapchat/Valdi / assignVec

Method assignVec

valdi_core/src/valdi_core/cpp/Utils/Bytes.cpp:15–18  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13Bytes::~Bytes() = default;
14
15void Bytes::assignVec(std::vector<Byte>&& vec) {
16 std::vector<Byte>* asVec = this;
17 *asVec = std::move(vec);
18}
19
20void Bytes::assignData(const Byte* data, size_t size) {
21 assign(data, data + size);

Callers 4

TESTFunction · 0.80
TESTFunction · 0.80
fromCppMethod · 0.80
DataRefValdiMethod · 0.80

Calls

no outgoing calls

Tested by 2

TESTFunction · 0.64
TESTFunction · 0.64