summaryrefslogtreecommitdiff
path: root/boost/beast/core/file_stdio.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'boost/beast/core/file_stdio.hpp')
-rw-r--r--boost/beast/core/file_stdio.hpp15
1 files changed, 14 insertions, 1 deletions
diff --git a/boost/beast/core/file_stdio.hpp b/boost/beast/core/file_stdio.hpp
index 09ca0c42de..d56632b899 100644
--- a/boost/beast/core/file_stdio.hpp
+++ b/boost/beast/core/file_stdio.hpp
@@ -1,5 +1,5 @@
//
-// Copyright (c) 2015-2016 Vinnie Falco (vinnie dot falco at gmail dot com)
+// Copyright (c) 2015-2019 Vinnie Falco (vinnie dot falco at gmail dot com)
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
@@ -39,6 +39,7 @@ public:
If the file is open it is first closed.
*/
+ BOOST_BEAST_DECL
~file_stdio();
/** Constructor
@@ -51,12 +52,14 @@ public:
The moved-from object behaves as if default constructed.
*/
+ BOOST_BEAST_DECL
file_stdio(file_stdio&& other);
/** Assignment
The moved-from object behaves as if default constructed.
*/
+ BOOST_BEAST_DECL
file_stdio& operator=(file_stdio&& other);
/// Returns the native handle associated with the file.
@@ -72,6 +75,7 @@ public:
@param f The native file handle to assign.
*/
+ BOOST_BEAST_DECL
void
native_handle(FILE* f);
@@ -86,6 +90,7 @@ public:
@param ec Set to the error, if any occurred.
*/
+ BOOST_BEAST_DECL
void
close(error_code& ec);
@@ -97,6 +102,7 @@ public:
@param ec Set to the error, if any occurred
*/
+ BOOST_BEAST_DECL
void
open(char const* path, file_mode mode, error_code& ec);
@@ -106,6 +112,7 @@ public:
@return The size in bytes
*/
+ BOOST_BEAST_DECL
std::uint64_t
size(error_code& ec) const;
@@ -115,6 +122,7 @@ public:
@return The offset in bytes from the beginning of the file
*/
+ BOOST_BEAST_DECL
std::uint64_t
pos(error_code& ec) const;
@@ -124,6 +132,7 @@ public:
@param ec Set to the error, if any occurred
*/
+ BOOST_BEAST_DECL
void
seek(std::uint64_t offset, error_code& ec);
@@ -135,6 +144,7 @@ public:
@param ec Set to the error, if any occurred
*/
+ BOOST_BEAST_DECL
std::size_t
read(void* buffer, std::size_t n, error_code& ec) const;
@@ -146,6 +156,7 @@ public:
@param ec Set to the error, if any occurred
*/
+ BOOST_BEAST_DECL
std::size_t
write(void const* buffer, std::size_t n, error_code& ec);
};
@@ -153,6 +164,8 @@ public:
} // beast
} // boost
+#ifdef BOOST_BEAST_HEADER_ONLY
#include <boost/beast/core/impl/file_stdio.ipp>
+#endif
#endif