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

Method append

Libraries/Http/HttpRouter.cpp:64–76  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

62 }
63
64 static bool append(Span<char> storage, size_t& offset, StringSpan value)
65 {
66 if (offset + value.sizeInBytes() > storage.sizeInBytes())
67 {
68 return false;
69 }
70 for (size_t idx = 0; idx < value.sizeInBytes(); ++idx)
71 {
72 storage.data()[offset + idx] = value.bytesWithoutTerminator()[idx];
73 }
74 offset += value.sizeInBytes();
75 return true;
76 }
77
78 static bool containsMethod(Span<HttpParser::Method> methods, size_t count, HttpParser::Method method)
79 {

Callers 7

getFileMethod · 0.45
putFileMethod · 0.45
onDataMethod · 0.45
startResponseMethod · 0.45
startRequestMethod · 0.45
sendHeadersMethod · 0.45

Calls 2

sizeInBytesMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected