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::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)
 
Uint8Array subarray (uint32_t begin, uint32_t end)
 
void copyTo (char *destination) const
 
QByteArray copyToQByteArray () const
 
emscripten::val val () const
 

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 165 of file qstdweb_p.h.

Constructor & Destructor Documentation

◆ Uint8Array() [1/5]

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

Definition at line 609 of file qstdweb.cpp.

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

+ Here is the caller graph for this function:

◆ Uint8Array() [2/5]

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

Definition at line 616 of file qstdweb.cpp.

◆ Uint8Array() [3/5]

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

Definition at line 637 of file qstdweb.cpp.

◆ Uint8Array() [4/5]

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

Definition at line 623 of file qstdweb.cpp.

◆ Uint8Array() [5/5]

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

Definition at line 630 of file qstdweb.cpp.

Member Function Documentation

◆ buffer()

ArrayBuffer qstdweb::Uint8Array::buffer ( ) const

Definition at line 643 of file qstdweb.cpp.

◆ copy()

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

Definition at line 684 of file qstdweb.cpp.

References Uint8Array(), and destination.

+ 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 690 of file qstdweb.cpp.

References Uint8Array().

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

+ 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 698 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 666 of file qstdweb.cpp.

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

Referenced by copyToQByteArray(), qstdweb::BlobIODevice::readData(), and qstdweb::Uint8ArrayIODevice::readData().

+ 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 672 of file qstdweb.cpp.

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

+ Here is the call graph for this function:

◆ heap()

Uint8Array qstdweb::Uint8Array::heap ( )
static

Definition at line 603 of file qstdweb.cpp.

References Uint8Array().

+ Here is the call graph for this function:

◆ length()

uint32_t qstdweb::Uint8Array::length ( ) const

Definition at line 648 of file qstdweb.cpp.

Referenced by copyTo(), copyToQByteArray(), and qstdweb::Uint8ArrayIODevice::size().

+ Here is the caller graph for this function:

◆ set()

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

Definition at line 653 of file qstdweb.cpp.

Referenced by qstdweb::Uint8ArrayIODevice::writeData().

+ Here is the caller graph for this function:

◆ subarray()

Uint8Array qstdweb::Uint8Array::subarray ( uint32_t begin,
uint32_t end )

Definition at line 658 of file qstdweb.cpp.

References Uint8Array(), and begin().

Referenced by qstdweb::Uint8ArrayIODevice::readData(), and qstdweb::Uint8ArrayIODevice::writeData().

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

◆ val()

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

Definition at line 703 of file qstdweb.cpp.


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