Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
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 77 of file qstdweb_p.h.

Constructor & Destructor Documentation

◆ Blob()

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

Definition at line 138 of file qstdweb.cpp.

Member Function Documentation

◆ arrayBuffer_sync()

ArrayBuffer qstdweb::Blob::arrayBuffer_sync ( ) const

Definition at line 178 of file qstdweb.cpp.

◆ copyFrom() [1/2]

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

Definition at line 168 of file qstdweb.cpp.

◆ copyFrom() [2/2]

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

Definition at line 156 of file qstdweb.cpp.

◆ fromArrayBuffer()

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

Definition at line 144 of file qstdweb.cpp.

◆ size()

uint32_t qstdweb::Blob::size ( ) const

Definition at line 151 of file qstdweb.cpp.

◆ slice()

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

Definition at line 173 of file qstdweb.cpp.

◆ type()

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

Definition at line 229 of file qstdweb.cpp.

◆ val()

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

Definition at line 192 of file qstdweb.cpp.

◆ FileReader

friend class FileReader
friend

Definition at line 90 of file qstdweb_p.h.


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