include/llfio/v2.0/lockable_io_handle.hpp
//! \overload EXTENSION: Locks for exclusive access
\overload EXTENSION: Locks for exclusive access
\ overload EXTENSION : Locks for exclusive access
result<extent_guard> lock_file_range(io_request<const_buffers_type> reqs, deadline d = deadline()) noexcept
  {
    size_t bytes = 0;
    for(auto &i : reqs.buffers)
    {
      if(bytes + i.size() < bytes)
      {
        return errc::value_too_large;
      }
      bytes += i.size();
    }
    return lock_file_range(reqs.offset, bytes, lock_kind::exclusive, d);
  }
result < extent_guard > lock_file_range ( io_request < const_buffers_type > reqs , deadline d = deadline ( ) ) noexcept { size_t bytes = 0 ; for ( auto & i : reqs . buffers ) { if ( bytes + i . size ( ) < bytes ) { return errc :: value_too_large ; } bytes += i . size ( ) ; } return lock_file_range ( reqs . offset , bytes , lock_kind :: exclusive , d ) ; }
\overload EXTENSION: Locks for exclusive access
\ overload EXTENSION : Locks for exclusive access