Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches
CHttpRanges Class Referencefinal

#include <HttpRangeUtils.h>

Public Member Functions

 CHttpRanges ()
 
 CHttpRanges (const HttpRanges &httpRanges)
 
const HttpRangesGet () const
 
bool Get (size_t index, CHttpRange &range) const
 
bool GetFirst (CHttpRange &range) const
 
bool GetLast (CHttpRange &range) const
 
size_t Size () const
 
bool IsEmpty () const
 
bool GetFirstPosition (uint64_t &position) const
 
bool GetLastPosition (uint64_t &position) const
 
uint64_t GetLength () const
 
bool GetTotalRange (CHttpRange &range) const
 
void Add (const CHttpRange &range)
 
void Remove (size_t index)
 
void Clear ()
 
HttpRanges::const_iterator Begin () const
 
HttpRanges::const_iterator End () const
 
bool Parse (const std::string &header)
 
bool Parse (const std::string &header, uint64_t totalLength)
 

Protected Member Functions

void SortAndCleanup ()
 

Protected Attributes

HttpRanges m_ranges
 

Constructor & Destructor Documentation

◆ CHttpRanges() [1/2]

CHttpRanges::CHttpRanges ( )

◆ CHttpRanges() [2/2]

CHttpRanges::CHttpRanges ( const HttpRanges & httpRanges)
explicit

Member Function Documentation

◆ Add()

void CHttpRanges::Add ( const CHttpRange & range)

◆ Begin()

HttpRanges::const_iterator CHttpRanges::Begin ( ) const
inline

◆ Clear()

void CHttpRanges::Clear ( )

◆ End()

HttpRanges::const_iterator CHttpRanges::End ( ) const
inline

◆ Get() [1/2]

const HttpRanges & CHttpRanges::Get ( ) const
inline

◆ Get() [2/2]

bool CHttpRanges::Get ( size_t index,
CHttpRange & range ) const

◆ GetFirst()

bool CHttpRanges::GetFirst ( CHttpRange & range) const

◆ GetFirstPosition()

bool CHttpRanges::GetFirstPosition ( uint64_t & position) const

◆ GetLast()

bool CHttpRanges::GetLast ( CHttpRange & range) const

◆ GetLastPosition()

bool CHttpRanges::GetLastPosition ( uint64_t & position) const

◆ GetLength()

uint64_t CHttpRanges::GetLength ( ) const

◆ GetTotalRange()

bool CHttpRanges::GetTotalRange ( CHttpRange & range) const

◆ IsEmpty()

bool CHttpRanges::IsEmpty ( ) const
inline

◆ Parse() [1/2]

bool CHttpRanges::Parse ( const std::string & header)

◆ Parse() [2/2]

bool CHttpRanges::Parse ( const std::string & header,
uint64_t totalLength )

◆ Remove()

void CHttpRanges::Remove ( size_t index)

◆ Size()

size_t CHttpRanges::Size ( ) const
inline

◆ SortAndCleanup()

void CHttpRanges::SortAndCleanup ( )
protected

Member Data Documentation

◆ m_ranges

HttpRanges CHttpRanges::m_ranges
protected

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