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

#include <HttpRangeUtils.h>

Inheritance diagram for CHttpRange:
CHttpResponseRange

Public Member Functions

 CHttpRange ()=default
 
 CHttpRange (uint64_t firstPosition, uint64_t lastPosition)
 
virtual ~CHttpRange ()=default
 
bool operator< (const CHttpRange &other) const
 
bool operator== (const CHttpRange &other) const
 
bool operator!= (const CHttpRange &other) const
 
virtual uint64_t GetFirstPosition () const
 
virtual void SetFirstPosition (uint64_t firstPosition)
 
virtual uint64_t GetLastPosition () const
 
virtual void SetLastPosition (uint64_t lastPosition)
 
virtual uint64_t GetLength () const
 
virtual void SetLength (uint64_t length)
 
virtual bool IsValid () const
 

Protected Attributes

uint64_t m_first = 1
 
uint64_t m_last = 0
 

Constructor & Destructor Documentation

◆ CHttpRange() [1/2]

CHttpRange::CHttpRange ( )
default

◆ CHttpRange() [2/2]

CHttpRange::CHttpRange ( uint64_t firstPosition,
uint64_t lastPosition )

◆ ~CHttpRange()

virtual CHttpRange::~CHttpRange ( )
virtualdefault

Member Function Documentation

◆ GetFirstPosition()

virtual uint64_t CHttpRange::GetFirstPosition ( ) const
inlinevirtual

◆ GetLastPosition()

virtual uint64_t CHttpRange::GetLastPosition ( ) const
inlinevirtual

◆ GetLength()

uint64_t CHttpRange::GetLength ( ) const
virtual

◆ IsValid()

bool CHttpRange::IsValid ( ) const
virtual

Reimplemented in CHttpResponseRange.

◆ operator!=()

bool CHttpRange::operator!= ( const CHttpRange & other) const

◆ operator<()

bool CHttpRange::operator< ( const CHttpRange & other) const

◆ operator==()

bool CHttpRange::operator== ( const CHttpRange & other) const

◆ SetFirstPosition()

virtual void CHttpRange::SetFirstPosition ( uint64_t firstPosition)
inlinevirtual

◆ SetLastPosition()

virtual void CHttpRange::SetLastPosition ( uint64_t lastPosition)
inlinevirtual

◆ SetLength()

void CHttpRange::SetLength ( uint64_t length)
virtual

Member Data Documentation

◆ m_first

uint64_t CHttpRange::m_first = 1
protected

◆ m_last

uint64_t CHttpRange::m_last = 0
protected

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