Assign an existing native file to the file. * This function opens the file to hold an existing native file. * * @param native_file A native file. * * @throws boost::system::system_error Thrown on failure. */
| 574 | * @throws boost::system::system_error Thrown on failure. |
| 575 | */ |
| 576 | void assign(const native_handle_type& native_file) |
| 577 | { |
| 578 | boost::system::error_code ec; |
| 579 | impl_.get_service().assign( |
| 580 | impl_.get_implementation(), native_file, ec); |
| 581 | boost::asio::detail::throw_error(ec, "assign"); |
| 582 | } |
| 583 | |
| 584 | /// Assign an existing native file to the file. |
| 585 | /* |
nothing calls this directly
no test coverage detected