MCPcopy Create free account
hub / github.com/alibaba/async_simple / open

Function open

demo_example/asio/asio/basic_file.hpp:368–373  ·  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 asio::system_error Thrown on failure. * * @par Example * @code * asio::stream_file file(my_con

Source from the content-addressed store, hash-verified

366 * @endcode
367 */
368 void open(const char* path, file_base::flags open_flags)
369 {
370 asio::error_code ec;
371 impl_.get_service().open(impl_.get_implementation(), path, open_flags, ec);
372 asio::detail::throw_error(ec, "open");
373 }
374
375 /// Open the file using the specified path.
376 /**

Callers 7

TEST_FFunction · 0.50
Uthread_read_fileFunction · 0.50
async_read_fileFunction · 0.50

Calls 2

throw_errorFunction · 0.85
openMethod · 0.45

Tested by 1

TEST_FFunction · 0.40