Functions | |
CFReleaser< CFStringRef > | fromBuffer (const uint8_t *buf, size_t buflen) |
Create a CFString by copying bytes from a raw buffer. More... | |
CFReleaser< CFStringRef > | fromStdString (const std::string &str) |
Create a CFString by copying characters from a std::string. More... | |
std::string | toStdString (CFStringRef cfStr) |
Convert a CFString to a std::string. More... | |
CFReleaser< CFStringRef > ndn::detail::cfstring::fromBuffer | ( | const uint8_t * | buf, |
size_t | buflen | ||
) |
Create a CFString by copying bytes from a raw buffer.
std::runtime_error | creation failed |
Definition at line 29 of file cf-string-osx.cpp.
References NDN_THROW.
Referenced by ndn::security::tpm::exportItem(), nfd::face::StreamTransport< boost::asio::local::stream_protocol >::handleReceive(), and nfd::face::DatagramTransport< boost::asio::ip::udp, Multicast >::receiveDatagram().
CFReleaser< CFStringRef > ndn::detail::cfstring::fromStdString | ( | const std::string & | str | ) |
Create a CFString by copying characters from a std::string.
std::runtime_error | creation failed |
Definition at line 39 of file cf-string-osx.cpp.
References NDN_THROW.
Referenced by ndn::security::tpm::BackEndOsx::derivePublicKey(), ndn::security::tpm::getKeyRef(), and ndn::net::NetworkMonitorImplOsx::listNetworkInterfaces().
std::string ndn::detail::cfstring::toStdString | ( | CFStringRef | cfStr | ) |
Convert a CFString to a std::string.
std::runtime_error | conversion failed |
Definition at line 49 of file cf-string-osx.cpp.
References NDN_THROW.
Referenced by ndn::net::computePrefixLength(), ndn::security::tpm::getErrorMessage(), ndn::security::tpm::getFailureReason(), and ndn::net::NetworkMonitorImplOsx::listNetworkInterfaces().