| 1641 | // Allow implicit conversion: |
| 1642 | // NOLINTNEXTLINE(google-explicit-constructor) |
| 1643 | bytes(const char *c = "") : object(PYBIND11_BYTES_FROM_STRING(c), stolen_t{}) { |
| 1644 | if (!m_ptr) { |
| 1645 | pybind11_fail("Could not allocate bytes object!"); |
| 1646 | } |
| 1647 | } |
| 1648 | |
| 1649 | template <typename SzType, detail::enable_if_t<std::is_integral<SzType>::value, int> = 0> |
| 1650 | bytes(const char *c, const SzType &n) |
nothing calls this directly
no test coverage detected