MCPcopy Create free account
hub / github.com/catboost/catboost / bytes

Method bytes

contrib/libs/pybind11/include/pybind11/pytypes.h:1692–1696  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1690 // Allow implicit conversion:
1691 // NOLINTNEXTLINE(google-explicit-constructor)
1692 bytes(const char *c = "") : object(PYBIND11_BYTES_FROM_STRING(c), stolen_t{}) {
1693 if (!m_ptr) {
1694 pybind11_fail("Could not allocate bytes object!");
1695 }
1696 }
1697
1698 template <typename SzType, detail::enable_if_t<std::is_integral<SzType>::value, int> = 0>
1699 bytes(const char *c, const SzType &n)

Callers

nothing calls this directly

Calls 3

ssize_t_castFunction · 0.85
dataMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected