| 1755 | // Allow implicit conversion: |
| 1756 | // NOLINTNEXTLINE(google-explicit-constructor) |
| 1757 | bytes(const char *c = "") : object(PYBIND11_BYTES_FROM_STRING(c), stolen_t{}) { |
| 1758 | if (!m_ptr) { |
| 1759 | pybind11_fail("Could not allocate bytes object!"); |
| 1760 | } |
| 1761 | } |
| 1762 | |
| 1763 | template <typename SzType, detail::enable_if_t<std::is_integral<SzType>::value, int> = 0> |
| 1764 | bytes(const char *c, const SzType &n) |
nothing calls this directly
no test coverage detected