From 098559ca3552ebd8f80a6d28254f4fa58913b751 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 25 Jul 2016 08:56:48 +0200 Subject: Add DLL export/import support --- butl/base64 | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'butl/base64') diff --git a/butl/base64 b/butl/base64 index 7a0e999..8e4f622 100644 --- a/butl/base64 +++ b/butl/base64 @@ -9,6 +9,8 @@ #include #include +#include + namespace butl { // Base64-encode a stream or a buffer. Split the output into 76 char-long @@ -18,13 +20,13 @@ namespace butl // if it has badbit, failbit, or eofbit set and throw invalid_argument if // that's the case. Otherwise set badbit if the write operation fails. // - void + LIBBUTL_EXPORT void base64_encode (std::ostream&, std::istream&); - std::string + LIBBUTL_EXPORT std::string base64_encode (std::istream&); - std::string + LIBBUTL_EXPORT std::string base64_encode (const std::vector&); // Base64-decode a stream or a string. Throw invalid_argument if the input @@ -35,13 +37,13 @@ namespace butl // invalid_argument if that's the case. Otherwise set badbit if the write // operation fails. // - void + LIBBUTL_EXPORT void base64_decode (std::ostream&, std::istream&); - void + LIBBUTL_EXPORT void base64_decode (std::ostream&, const std::string&); - std::vector + LIBBUTL_EXPORT std::vector base64_decode (const std::string&); }; -- cgit v1.1