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.
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.
Referenced by ndn::security::tpm::getKeyRef().
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.
Referenced by ndn::security::tpm::getErrorMessage(), and ndn::security::tpm::getFailureReason().