MCPcopy Create free account
hub / github.com/cvanaret/Uno / PythonStreamBuffer

Method PythonStreamBuffer

interfaces/Python/cpp_classes/PythonStreamBuffer.cpp:7–10  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5
6namespace uno {
7 PythonStreamBuffer::PythonStreamBuffer(pybind11::object stream):
8 write_function(stream.attr("write")),
9 flush_function(stream.attr("flush")) {
10 }
11
12 std::streamsize PythonStreamBuffer::xsputn(const char* s, std::streamsize n) {
13 this->write_function(std::string(s, n));

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected