MCPcopy Create free account
hub / github.com/alibaba/PhotonLibOS / BodyReadStream

Method BodyReadStream

net/http/body.cpp:55–60  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

53class BodyReadStream : public ROStream {
54public:
55 BodyReadStream(net::ISocketStream *stream, std::string_view body,
56 size_t body_remain) : m_stream(stream),
57 m_partial_body_buf((char*)body.data()),
58 m_partial_body_remain(body.size()),
59 m_body_remain(body_remain) {
60 }
61 ~BodyReadStream() {
62 }
63 virtual int close() override {

Callers

nothing calls this directly

Calls 2

dataMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected