Audacity 3.2.0
Public Types | Public Member Functions | List of all members
audacity::network_manager::RequestPayloadStream Class Referenceabstract

#include <RequestPayload.h>

Inheritance diagram for audacity::network_manager::RequestPayloadStream:
[legend]

Public Types

enum class  SeekDirection { Start , Current , End }
 

Public Member Functions

virtual ~RequestPayloadStream ()
 
virtual bool HasData () const =0
 return true on if stream is not empty More...
 
virtual int64_t GetDataSize () const =0
 May return 0 even if HasData() returns true. More...
 
virtual bool Seek (int64_t offset, SeekDirection direction)=0
 returns true on success More...
 
virtual int64_t Read (void *buffer, int64_t size)=0
 returns number of bytes read More...
 

Detailed Description

Definition at line 19 of file RequestPayload.h.

Member Enumeration Documentation

◆ SeekDirection

Enumerator
Start 
Current 
End 

Definition at line 30 of file RequestPayload.h.

31 {
32 Start,
33 Current,
34 End
35 };

Constructor & Destructor Documentation

◆ ~RequestPayloadStream()

audacity::network_manager::RequestPayloadStream::~RequestPayloadStream ( )
virtual

Definition at line 179 of file RequestPayload.cpp.

180{
181}

Member Function Documentation

◆ GetDataSize()

virtual int64_t audacity::network_manager::RequestPayloadStream::GetDataSize ( ) const
pure virtual

◆ HasData()

virtual bool audacity::network_manager::RequestPayloadStream::HasData ( ) const
pure virtual

◆ Read()

virtual int64_t audacity::network_manager::RequestPayloadStream::Read ( void *  buffer,
int64_t  size 
)
pure virtual

◆ Seek()

virtual bool audacity::network_manager::RequestPayloadStream::Seek ( int64_t  offset,
SeekDirection  direction 
)
pure virtual

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