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

#include <qstdweb_p.h>

+ Collaboration diagram for qstdweb::Uint8Array:

Public Member Functions

 Uint8Array (const emscripten::val &uint8Array)
 
 Uint8Array (const ArrayBuffer &buffer)
 
 Uint8Array (uint32_t size)
 
 Uint8Array (const ArrayBuffer &buffer, uint32_t offset, uint32_t length)
 
 Uint8Array (const char *buffer, uint32_t size)
 
ArrayBuffer buffer () const
 
uint32_t length () const
 
void set (const Uint8Array &source)
 
void copyTo (char *destination) const
 
QByteArray copyToQByteArray () const
 
emscripten::val val ()
 

Static Public Member Functions

static Uint8Array heap ()
 
static void copy (char *destination, const Uint8Array &source)
 
static Uint8Array copyFrom (const char *buffer, uint32_t size)
 
static Uint8Array copyFrom (const QByteArray &buffer)
 

Detailed Description

Definition at line 126 of file qstdweb_p.h.

Constructor & Destructor Documentation

◆ Uint8Array() [1/5]

qstdweb::Uint8Array::Uint8Array ( const emscripten::val &  uint8Array)
explicit

Definition at line 656 of file qstdweb.cpp.

◆ Uint8Array() [2/5]

qstdweb::Uint8Array::Uint8Array ( const ArrayBuffer buffer)
explicit

Definition at line 663 of file qstdweb.cpp.

◆ Uint8Array() [3/5]

qstdweb::Uint8Array::Uint8Array ( uint32_t  size)
explicit

Definition at line 684 of file qstdweb.cpp.

◆ Uint8Array() [4/5]

qstdweb::Uint8Array::Uint8Array ( const ArrayBuffer buffer,
uint32_t  offset,
uint32_t  length 
)

Definition at line 670 of file qstdweb.cpp.

◆ Uint8Array() [5/5]

qstdweb::Uint8Array::Uint8Array ( const char *  buffer,
uint32_t  size 
)

Definition at line 677 of file qstdweb.cpp.

Member Function Documentation

◆ buffer()

ArrayBuffer qstdweb::Uint8Array::buffer ( ) const

Definition at line 690 of file qstdweb.cpp.

◆ copy()

void qstdweb::Uint8Array::copy ( char *  destination,
const Uint8Array source 
)
static

Definition at line 724 of file qstdweb.cpp.

References destination, and set().

+ Here is the call graph for this function:

◆ copyFrom() [1/2]

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

Definition at line 730 of file qstdweb.cpp.

References set().

Referenced by qstdweb::Blob::copyFrom(), copyFrom(), and QWasmLocalFileAccess::saveDataToFileInChunks().

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

◆ copyFrom() [2/2]

Uint8Array qstdweb::Uint8Array::copyFrom ( const QByteArray buffer)
static

Definition at line 738 of file qstdweb.cpp.

References copyFrom().

+ Here is the call graph for this function:

◆ copyTo()

void qstdweb::Uint8Array::copyTo ( char *  destination) const

Definition at line 706 of file qstdweb.cpp.

References destination, length(), and set().

Referenced by copyToQByteArray().

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

◆ copyToQByteArray()

QByteArray qstdweb::Uint8Array::copyToQByteArray ( ) const

Definition at line 712 of file qstdweb.cpp.

References copyTo(), QByteArray::data(), length(), and QByteArray::resize().

+ Here is the call graph for this function:

◆ heap()

Uint8Array qstdweb::Uint8Array::heap ( )
static

Definition at line 650 of file qstdweb.cpp.

◆ length()

uint32_t qstdweb::Uint8Array::length ( ) const

Definition at line 695 of file qstdweb.cpp.

Referenced by copyTo(), and copyToQByteArray().

+ Here is the caller graph for this function:

◆ set()

void qstdweb::Uint8Array::set ( const Uint8Array source)

Definition at line 700 of file qstdweb.cpp.

Referenced by copy(), copyFrom(), and copyTo().

+ Here is the caller graph for this function:

◆ val()

emscripten::val qstdweb::Uint8Array::val ( )

Definition at line 743 of file qstdweb.cpp.

Referenced by qstdweb::Blob::copyFrom(), and QWasmLocalFileAccess::saveDataToFileInChunks().

+ Here is the caller graph for this function:

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