MCPcopy Create free account
hub / github.com/cinit/TMoe / toVector

Method toVector

app/src/main/cpp/utils/SharedBuffer.cpp:167–175  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

165}
166
167std::vector<uint8_t> SharedBuffer::toVector() const {
168 const SharedBufferImpl *p = pImpl.get();
169 if (p != nullptr && p->get() != nullptr) {
170 return {reinterpret_cast<const uint8_t *>(p->get()),
171 reinterpret_cast<const uint8_t *>(p->get()) + p->size()};
172 } else {
173 return {};
174 }
175}

Callers

nothing calls this directly

Calls 2

getMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected