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

Method toBytesView

valdi_core/src/valdi_core/cpp/Utils/ByteBuffer.cpp:214–216  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

212}
213
214BytesView ByteBuffer::toBytesView() {
215 return BytesView(strongSmallRef(this), data(), size());
216}
217
218std::string_view ByteBuffer::toStringView() const {
219 return std::string_view(reinterpret_cast<const char*>(data()), size());

Callers 10

marshallBinaryFunction · 0.45
readMethod · 0.45
loadFromFdMethod · 0.45
readMethod · 0.45
TESTFunction · 0.45
TEST_FFunction · 0.45
makeProtoDataFunction · 0.45
encodeMethod · 0.45

Calls 4

strongSmallRefFunction · 0.85
dataFunction · 0.85
BytesViewClass · 0.70
sizeFunction · 0.50

Tested by 2

TESTFunction · 0.36
TEST_FFunction · 0.36