| 1792 | private: |
| 1793 | template <typename T> |
| 1794 | T string_op() const { |
| 1795 | char *buffer = nullptr; |
| 1796 | ssize_t length = 0; |
| 1797 | if (PyBytes_AsStringAndSize(m_ptr, &buffer, &length) != 0) { |
| 1798 | throw error_already_set(); |
| 1799 | } |
| 1800 | return {buffer, static_cast<size_t>(length)}; |
| 1801 | } |
| 1802 | }; |
| 1803 | // Note: breathe >= 4.17.0 will fail to build docs if the below two constructors |
| 1804 | // are included in the doxygen group; close here and reopen after as a workaround |
nothing calls this directly
no outgoing calls
no test coverage detected