9 #include <botan/data_snk.h>
10 #include <botan/exceptn.h>
12 #if defined(BOTAN_TARGET_OS_HAS_FILESYSTEM)
23 m_sink.write(reinterpret_cast<const char*>(out), length);
33 const std::string& name) :
39 #if defined(BOTAN_TARGET_OS_HAS_FILESYSTEM)
47 m_sink_memory(new
std::ofstream(path, use_binary ?
std::ios::binary :
std::ios::out)),
48 m_sink(*m_sink_memory)
DataSink_Stream(std::ostream &stream, const std::string &name="<std::ostream>")
void write(const uint8_t[], size_t) override