| 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 | { |
no test coverage detected