MCPcopy Create free account
hub / github.com/aguinet/dragonffi / pythonbuf

Method pythonbuf

third-party/pybind11/iostream.h:120–124  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

118
119public:
120 explicit pythonbuf(const object &pyostream, size_t buffer_size = 1024)
121 : buf_size(buffer_size), d_buffer(new char[buf_size]), pywrite(pyostream.attr("write")),
122 pyflush(pyostream.attr("flush")) {
123 setp(d_buffer.get(), d_buffer.get() + buf_size - 1);
124 }
125
126 pythonbuf(pythonbuf &&) = default;
127

Callers

nothing calls this directly

Calls 2

attrMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected