MCPcopy Create free account
hub / github.com/boostorg/asio / open

Function open

include/boost/asio/basic_file.hpp:435–440  ·  view source on GitHub ↗

Open the file using the specified path. * This function opens the file so that it will use the specified path. * * @param path The path name identifying the file to be opened. * * @param open_flags A set of flags that determine how the file should be * opened. * * @throws boost::system::system_error Thrown on failure. * * Exactly one of the following file_base::flags val

Source from the content-addressed store, hash-verified

433 * @endcode
434 */
435 void open(const char* path, file_base::flags open_flags)
436 {
437 boost::system::error_code ec;
438 impl_.get_service().open(impl_.get_implementation(), path, open_flags, ec);
439 boost::asio::detail::throw_error(ec, "open");
440 }
441
442 /// Open the file using the specified path.
443 /**

Callers 5

mainFunction · 0.50

Calls 2

throw_errorFunction · 0.85
openMethod · 0.45

Tested by

no test coverage detected