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

#include <qstdweb_p.h>

+ Collaboration diagram for qstdweb::Blob:

Public Member Functions

 Blob (const emscripten::val &blob)
 
uint32_t size () const
 
emscripten::val val ()
 
std::string type () const
 

Static Public Member Functions

static Blob copyFrom (const char *buffer, uint32_t size, std::string mimeType)
 
static Blob copyFrom (const char *buffer, uint32_t size)
 

Friends

class FileReader
 

Detailed Description

Definition at line 63 of file qstdweb_p.h.

Constructor & Destructor Documentation

◆ Blob()

qstdweb::Blob::Blob ( const emscripten::val &  blob)
explicit

Definition at line 507 of file qstdweb.cpp.

Member Function Documentation

◆ copyFrom() [1/2]

Blob qstdweb::Blob::copyFrom ( const char *  buffer,
uint32_t  size 
)
static

Definition at line 530 of file qstdweb.cpp.

References copyFrom().

+ Here is the call graph for this function:

◆ copyFrom() [2/2]

Blob qstdweb::Blob::copyFrom ( const char *  buffer,
uint32_t  size,
std::string  mimeType 
)
static

Definition at line 518 of file qstdweb.cpp.

References qstdweb::Uint8Array::copyFrom(), mimeType, and qstdweb::Uint8Array::val().

Referenced by copyFrom(), QWasmLocalFileAccess::downloadDataAsFile(), QWasmAudioOutput::setSource(), and QWasmVideoOutput::setSource().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ size()

uint32_t qstdweb::Blob::size ( ) const

Definition at line 513 of file qstdweb.cpp.

◆ type()

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

Definition at line 561 of file qstdweb.cpp.

◆ val()

emscripten::val qstdweb::Blob::val ( )

Definition at line 535 of file qstdweb.cpp.

Referenced by QWasmLocalFileAccess::downloadDataAsFile(), QWasmAudioOutput::setSource(), and QWasmVideoOutput::setSource().

+ Here is the caller graph for this function:

Friends And Related Symbol Documentation

◆ FileReader

friend class FileReader
friend

Definition at line 73 of file qstdweb_p.h.


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