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

Method write

common/memory-stream/memory-stream.cpp:187–191  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

185 }
186
187 virtual ssize_t write(const void* buf, size_t count) override {
188 if (m_flags & 2)
189 IF_GEN_FAULT_RETURN(-1);
190 return m_stream->write(buf, count);
191 }
192
193 virtual ssize_t writev(const struct iovec* iov, int iovcnt) override {
194 if (m_flags & 2)

Callers 3

writeMethod · 0.45
writeMethod · 0.45
stream_writerFunction · 0.45

Calls

no outgoing calls

Tested by 1

stream_writerFunction · 0.36