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

Function getText

src/HttpHeaderProcessor.cc:116–125  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

114
115namespace {
116size_t getText(std::string& buf, const unsigned char* data, size_t length,
117 size_t off)
118{
119 size_t j = off;
120 while (j < length && !util::isCRLF(data[j])) {
121 ++j;
122 }
123 buf.append(&data[off], &data[j]);
124 return j - 1;
125}
126} // namespace
127
128namespace {

Callers 1

parseMethod · 0.85

Calls 2

isCRLFFunction · 0.85
appendMethod · 0.45

Tested by

no test coverage detected