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

Method createFixed

Libraries/Await/Await.cpp:146–161  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

144}
145
146Result AwaitAllocator::createFixed(Span<char> storage)
147{
148 if (isOpen())
149 {
150 return Result::Error("AwaitAllocator is already open");
151 }
152 if (storage.empty())
153 {
154 return Result::Error("AwaitAllocator fixed storage is empty");
155 }
156
157 resetState();
158 SC_TRY(initializeFixedStorage(storage));
159 currentMode = AwaitAllocatorMode::Fixed;
160 return Result(true);
161}
162
163Result AwaitAllocator::createVirtual(AwaitAllocatorVirtualOptions options)
164{

Callers 15

taskLifetimeEdgeCasesMethod · 0.80
taskCrossLoopGuardsMethod · 0.80
spawnWrongEventLoopMethod · 0.80
allocatorMethod · 0.80
allocatorExhaustionMethod · 0.80
allocatorModesMethod · 0.80
runAwaitProcessExitCodesFunction · 0.80
runAwaitServiceProbeFunction · 0.80
runAwaitManifestPreviewFunction · 0.80
runAwaitConfigReloadFunction · 0.80
runAwaitBackgroundJobsFunction · 0.80
runAwaitDatagramPingFunction · 0.80

Calls 2

ErrorEnum · 0.50
ResultClass · 0.50

Tested by 6

taskLifetimeEdgeCasesMethod · 0.64
taskCrossLoopGuardsMethod · 0.64
spawnWrongEventLoopMethod · 0.64
allocatorMethod · 0.64
allocatorExhaustionMethod · 0.64
allocatorModesMethod · 0.64