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

Method toBytesView

valdi/src/valdi/runtime/Resources/MmapBuffer.cpp:35–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33}
34
35BytesView MmapBuffer::toBytesView() {
36 return BytesView(strongSmallRef(this), data(), _size);
37}
38
39Result<Ref<MmapBuffer>> MmapBuffer::createWritable(const Path& filePath, size_t size) {
40 if (size == 0) {

Callers 15

flushMethod · 0.45
encryptMethod · 0.45
decryptMethod · 0.45
generateCryptoKeyMethod · 0.45
decompressMethod · 0.45
serializeMethod · 0.45
preprocessMethod · 0.45
newArrayBufferCopyMethod · 0.45
makePreCompiledJsModuleFunction · 0.45
buildMethod · 0.45

Calls 3

strongSmallRefFunction · 0.85
dataFunction · 0.85
BytesViewClass · 0.50

Tested by

no test coverage detected