MCPcopy Create free account
hub / github.com/Pagghiu/SaneCppLibraries / init

Method init

Libraries/AsyncStreams/AsyncStreams.cpp:332–341  ·  view source on GitHub ↗

------------------------------------------------------------------------------------------------------- AsyncReadableStream -------------------------------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

330 Span<char> rootWritableData = {const_cast<char*>(rootFullData.data()), rootFullData.sizeInBytes()};
331 (void)rootWritableData.sliceStartLength(rootOffset, length, child.writableData);
332 }
333 refBuffer(rootParentID); // Increment parent's refcount
334 outChildBufferID = AsyncBufferView::ID(static_cast<AsyncBufferView::ID::NumericType>(idx));
335 return Result(true);
336 }
337 }
338 return Result::Error(AsyncStreamsResultCategory, AsyncStreamsError::BufferPoolFull);
339}
340
341//-------------------------------------------------------------------------------------------------------
342// AsyncReadableStream
343//-------------------------------------------------------------------------------------------------------
344Result AsyncReadableStream::init(AsyncBuffersPool& buffersPool)

Callers

nothing calls this directly

Calls 5

setReadQueueFunction · 0.85
setWriteQueueFunction · 0.85
initFunction · 0.85
ResultClass · 0.50
sizeMethod · 0.45

Tested by

no test coverage detected