diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2016-07-25 08:56:48 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2016-07-25 08:56:48 +0200 |
commit | 098559ca3552ebd8f80a6d28254f4fa58913b751 (patch) | |
tree | 1eb6f65b492d3217a380a909f6810a5f3e00cc37 /butl/base64 | |
parent | 6c8e3f09c185d7fa4664ccd9e5c4f623a17b84cc (diff) |
Add DLL export/import support
Diffstat (limited to 'butl/base64')
-rw-r--r-- | butl/base64 | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/butl/base64 b/butl/base64 index 7a0e999..8e4f622 100644 --- a/butl/base64 +++ b/butl/base64 @@ -9,6 +9,8 @@ #include <string> #include <vector> +#include <butl/export> + 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<char>&); // 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<char> + LIBBUTL_EXPORT std::vector<char> base64_decode (const std::string&); }; |