Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
qstdweb::File Class Reference

#include <qstdweb_p.h>

+ Collaboration diagram for qstdweb::File:

Public Member Functions

 File ()=default
 
 File (const emscripten::val &file)
 
Blob slice (uint64_t begin, uint64_t end) const
 
std::string name () const
 
uint64_t size () const
 
std::string type () const
 
void stream (uint32_t offset, uint32_t length, char *buffer, std::function< void()> completed) const
 
void stream (char *buffer, std::function< void()> completed) const
 
emscripten::val val ()
 

Detailed Description

Definition at line 77 of file qstdweb_p.h.

Constructor & Destructor Documentation

◆ File() [1/2]

qstdweb::File::File ( )
default

◆ File() [2/2]

qstdweb::File::File ( const emscripten::val &  file)
explicit

Definition at line 540 of file qstdweb.cpp.

Member Function Documentation

◆ name()

std::string qstdweb::File::name ( ) const

Definition at line 551 of file qstdweb.cpp.

◆ size()

uint64_t qstdweb::File::size ( ) const

Definition at line 556 of file qstdweb.cpp.

Referenced by stream().

+ Here is the caller graph for this function:

◆ slice()

Blob qstdweb::File::slice ( uint64_t  begin,
uint64_t  end 
) const

Definition at line 546 of file qstdweb.cpp.

References begin().

+ Here is the call graph for this function:

◆ stream() [1/2]

void qstdweb::File::stream ( char *  buffer,
std::function< void()>  completed 
) const

Definition at line 576 of file qstdweb.cpp.

References size().

+ Here is the call graph for this function:

◆ stream() [2/2]

void qstdweb::File::stream ( uint32_t  offset,
uint32_t  length,
char *  buffer,
std::function< void()>  completed 
) const

Definition at line 568 of file qstdweb.cpp.

◆ type()

std::string qstdweb::File::type ( ) const

Definition at line 581 of file qstdweb.cpp.

◆ val()

emscripten::val qstdweb::File::val ( )

Definition at line 586 of file qstdweb.cpp.


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