MCPcopy Create free account
hub / github.com/ClickHouse/ClickHouse / writeToDevice

Method writeToDevice

base/poco/Net/src/HTTPFixedLengthStream.cpp:69–77  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

67
68
69int HTTPFixedLengthStreamBuf::writeToDevice(const char* buffer, std::streamsize length)
70{
71 if (_count + length > _length)
72 throw MessageException("Write past Content-Length");
73
74 int n = _session.write(buffer, length);
75 if (n > 0) _count += n;
76 return n;
77}
78
79
80//

Callers

nothing calls this directly

Calls 1

writeMethod · 0.45

Tested by

no test coverage detected