Get the size of the file. * This function determines the size of the file, in bytes. * * @throws asio::system_error Thrown on failure. */
| 690 | * @throws asio::system_error Thrown on failure. |
| 691 | */ |
| 692 | uint64_t size() const |
| 693 | { |
| 694 | asio::error_code ec; |
| 695 | uint64_t s = impl_.get_service().size(impl_.get_implementation(), ec); |
| 696 | asio::detail::throw_error(ec, "size"); |
| 697 | return s; |
| 698 | } |
| 699 | |
| 700 | /// Get the size of the file. |
| 701 | /** |