Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
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
 
Blob slice (uint32_t begin, uint32_t end) const
 
ArrayBuffer arrayBuffer_sync () const
 
emscripten::val val () const
 
std::string type () const
 

Static Public Member Functions

static Blob fromArrayBuffer (const ArrayBuffer &arrayBuffer)
 
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 70 of file qstdweb_p.h.

Constructor & Destructor Documentation

◆ Blob()

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

Definition at line 407 of file qstdweb.cpp.

Referenced by copyFrom(), fromArrayBuffer(), and slice().

+ Here is the caller graph for this function:

Member Function Documentation

◆ arrayBuffer_sync()

ArrayBuffer qstdweb::Blob::arrayBuffer_sync ( ) const

Definition at line 447 of file qstdweb.cpp.

References QEventLoop::exec(), qstdweb::Promise::make(), QStringLiteral, and QEventLoop::quit().

Referenced by qstdweb::BlobIODevice::readData().

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

◆ copyFrom() [1/2]

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

Definition at line 437 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 425 of file qstdweb.cpp.

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

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:

◆ fromArrayBuffer()

Blob qstdweb::Blob::fromArrayBuffer ( const ArrayBuffer & arrayBuffer)
static

Definition at line 413 of file qstdweb.cpp.

References Blob().

+ Here is the call graph for this function:

◆ size()

uint32_t qstdweb::Blob::size ( ) const

Definition at line 420 of file qstdweb.cpp.

Referenced by qstdweb::BlobIODevice::size().

+ Here is the caller graph for this function:

◆ slice()

Blob qstdweb::Blob::slice ( uint32_t begin,
uint32_t end ) const

Definition at line 442 of file qstdweb.cpp.

References Blob(), and begin().

Referenced by qstdweb::BlobIODevice::readData().

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

◆ type()

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

Definition at line 498 of file qstdweb.cpp.

◆ val()

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

Definition at line 461 of file qstdweb.cpp.

Friends And Related Symbol Documentation

◆ FileReader

friend class FileReader
friend

Definition at line 83 of file qstdweb_p.h.


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