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

Method write

common/memory-stream/memory-stream.cpp:47–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45 return m_ringbuf.readv(iov, iovcnt);
46 }
47 virtual ssize_t write(const void *buf, size_t count) override
48 {
49 if (closed) return -1;
50 return m_ringbuf.write(buf, count);
51 }
52 virtual ssize_t writev(const struct iovec *iov, int iovcnt) override
53 {
54 if (closed) return -1;

Callers

nothing calls this directly

Calls 1

writeMethod · 0.45

Tested by

no test coverage detected