MCPcopy Create free account
hub / github.com/aria2/aria2 / getToken

Function getToken

src/HttpHeaderProcessor.cc:89–98  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

87
88namespace {
89size_t getToken(std::string& buf, const unsigned char* data, size_t length,
90 size_t off)
91{
92 size_t j = off;
93 while (j < length && !util::isLws(data[j]) && !util::isCRLF(data[j])) {
94 ++j;
95 }
96 buf.append(&data[off], &data[j]);
97 return j - 1;
98}
99} // namespace
100
101namespace {

Callers 1

parseMethod · 0.85

Calls 3

isLwsFunction · 0.85
isCRLFFunction · 0.85
appendMethod · 0.45

Tested by

no test coverage detected