LeviLamina
Loading...
Searching...
No Matches
StreamFileDownloader Class Reference
Inheritance diagram for StreamFileDownloader:

Public Types

using DataCallback
using EndCallback = ::std::function<void(::DownloaderState)>
using WriteCompleteCallback = ::std::function<void(uint64, bool)>

Public Member Functions

StreamFileDownloaderoperator= (StreamFileDownloader const &)
 StreamFileDownloader (StreamFileDownloader const &)
virtual void update ()
virtual void initRealmsFileDownloader (::std::string const &downloadId, int const slotIndex, ::std::string const &downloadUrl, ::FileInfo const &file, uint64 fromByteOffset, ::std::string const &downloadVersion, ::std::function< void(::DownloaderResult)> callback)
virtual void initFileDownloader (::std::string const &, ::std::string const &downloadUrl, ::FileInfo const &, uint64 expectedFileSize, uint64 fromByteOffset, ::std::string const &, ::std::function< void(::DownloaderResult)> callback)
virtual void downloadFile (::std::function< void(::std::vector< uchar >, uint64, uint64, ::std::function< void(uint64, bool)>)> dataCallback, ::std::function< void(::DownloaderState)> endCallback)
virtual bool canCancelDownload () const
virtual void cancelDownload ()
virtual uint64 getDownloadTotalSize () const
virtual uint64 getDownloadReceivedSize () const
virtual float getDownloadProgress () const
virtual::Bedrock::Http::Request _makeRequest ()
MCNAPI_C void _checkErrorAndRequeue (uint64 bytesWritten, bool hasError)
MCNAPI_C void _downloadFile ()
MCNAPI_C ::Bedrock::Threading::Async<::Bedrock::Http::Response_downloadNextChunk (::Bedrock::Http::Request request)
MCNAPI_C ::Bedrock::Threading::Async<::std::tuple< uint64, bool > > _processResponse (::Bedrock::Http::Response response)
MCNAPI_C void * $ctor ()
MCAPI void $dtor ()

Static Public Member Functions

static MCAPI void ** $vftable ()
static MCNAPI_C ::std::add_lvalue_reference_t< char const *const[]> DownloaderResultStrings ()

Public Attributes

::ll::UntypedStorage< 8, 32 > mUnka211d4
::ll::UntypedStorage< 8, 8 > mUnkd71e6f
::ll::UntypedStorage< 8, 64 > mUnkfb46b6
::ll::UntypedStorage< 8, 64 > mUnk82ed74
::ll::UntypedStorage< 8, 8 > mUnk402616
::ll::UntypedStorage< 8, 8 > mUnk89347f
::ll::UntypedStorage< 8, 8 > mUnk238343
::ll::UntypedStorage< 1, 1 > mUnk1c4b1c
::ll::UntypedStorage< 1, 1 > mUnkcb17b4
::ll::UntypedStorage< 8, 336 > mUnk6e3666

Member Typedef Documentation

◆ DataCallback

using IFileChunkDownloader::DataCallback
inherited
Initial value:
::std::function<void(::std::vector<uchar>, uint64, uint64, ::std::function<void(uint64, bool)>)>

Member Function Documentation

◆ update()

virtual void StreamFileDownloader::update ( )
virtual

Implements IFileChunkDownloader.

◆ initRealmsFileDownloader()

virtual void StreamFileDownloader::initRealmsFileDownloader ( ::std::string const & downloadId,
int const slotIndex,
::std::string const & downloadUrl,
::FileInfo const & file,
uint64 fromByteOffset,
::std::string const & downloadVersion,
::std::function< void(::DownloaderResult)> callback )
virtual

Implements IFileChunkDownloader.

◆ initFileDownloader()

virtual void StreamFileDownloader::initFileDownloader ( ::std::string const & ,
::std::string const & downloadUrl,
::FileInfo const & ,
uint64 expectedFileSize,
uint64 fromByteOffset,
::std::string const & ,
::std::function< void(::DownloaderResult)> callback )
virtual

Implements IFileChunkDownloader.

◆ downloadFile()

virtual void StreamFileDownloader::downloadFile ( ::std::function< void(::std::vector< uchar >, uint64, uint64, ::std::function< void(uint64, bool)>)> dataCallback,
::std::function< void(::DownloaderState)> endCallback )
virtual

Implements IFileChunkDownloader.

◆ canCancelDownload()

virtual bool StreamFileDownloader::canCancelDownload ( ) const
virtual

Implements IFileChunkDownloader.

◆ cancelDownload()

virtual void StreamFileDownloader::cancelDownload ( )
virtual

Implements IFileChunkDownloader.

◆ getDownloadTotalSize()

virtual uint64 StreamFileDownloader::getDownloadTotalSize ( ) const
virtual

Implements IFileChunkDownloader.

◆ getDownloadReceivedSize()

virtual uint64 StreamFileDownloader::getDownloadReceivedSize ( ) const
virtual

Implements IFileChunkDownloader.

◆ getDownloadProgress()

virtual float StreamFileDownloader::getDownloadProgress ( ) const
virtual

Implements IFileChunkDownloader.

◆ $dtor()

MCAPI void StreamFileDownloader::$dtor ( )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $vftable()

MCAPI void ** StreamFileDownloader::$vftable ( )
static
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

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