MCPcopy Create free account
hub / github.com/davisking/dlib / bytes

Method bytes

dlib/external/pybind11/include/pybind11/pytypes.h:1643–1647  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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)

Callers

nothing calls this directly

Calls 3

ssize_t_castFunction · 0.85
dataMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected