LibPkg
Public Member Functions | Public Attributes | List of all members
pkg::commit::progress Struct Reference

A structure for monitoring the download progress of one source. More...

#include <commit.h>

Public Member Functions

 progress ()
 Construct progress structure. More...
 

Public Attributes

size_type bytes_done
 The number of bytes downloaded. More...
 
size_type bytes_total
 The total number of bytes to download, or npos if not known. More...
 
size_type bytes_ctrl
 The total number of bytes specified in the control record, or npos if no total was given. More...
 

Detailed Description

A structure for monitoring the download progress of one source.

Constructor & Destructor Documentation

◆ progress()

pkg::commit::progress::progress ( )

Construct progress structure.

By default no bytes have been downloaded, the total to download is unknown, and there is no total from the control record.

Member Data Documentation

◆ bytes_done

size_type pkg::commit::progress::bytes_done

The number of bytes downloaded.

Referenced by pkg::commit::poll().

◆ bytes_total

size_type pkg::commit::progress::bytes_total

The total number of bytes to download, or npos if not known.

Referenced by pkg::commit::poll().

◆ bytes_ctrl

size_type pkg::commit::progress::bytes_ctrl

The total number of bytes specified in the control record, or npos if no total was given.


The documentation for this struct was generated from the following files:

Reference Manual LibPkg Version 0.9.0 (4 Sep 2020)