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>.
|
#include <qstdweb_p.h>
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 |
Definition at line 70 of file qstdweb_p.h.
|
explicit |
Definition at line 407 of file qstdweb.cpp.
Referenced by copyFrom(), fromArrayBuffer(), and slice().
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().
|
static |
Definition at line 437 of file qstdweb.cpp.
References copyFrom().
|
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().
|
static |
Definition at line 413 of file qstdweb.cpp.
References Blob().
uint32_t qstdweb::Blob::size | ( | ) | const |
Definition at line 420 of file qstdweb.cpp.
Referenced by qstdweb::BlobIODevice::size().
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().
std::string qstdweb::Blob::type | ( | ) | const |
Definition at line 498 of file qstdweb.cpp.
emscripten::val qstdweb::Blob::val | ( | ) | const |
Definition at line 461 of file qstdweb.cpp.
|
friend |
Definition at line 83 of file qstdweb_p.h.