Skip to main content

QCborStreamReader

Struct QCborStreamReader 

Source
pub struct QCborStreamReader { /* private fields */ }
Expand description

C++ class: QCborStreamReader.

Implementations§

Source§

impl QCborStreamReader

Source

pub unsafe fn add_data_q_byte_array(&self, data: impl CastInto<Ref<QByteArray>>)

Calls C++ function: void QCborStreamReader::addData(const QByteArray& data).

Source

pub unsafe fn add_data_char_longlong( &self, data: *const c_char, len: c_longlong, )

Calls C++ function: void QCborStreamReader::addData(const char* data, long long len).

Source

pub unsafe fn add_data_uchar_longlong( &self, data: *const c_uchar, len: c_longlong, )

Calls C++ function: void QCborStreamReader::addData(const unsigned char* data, long long len).

Source

pub unsafe fn clear(&self)

Calls C++ function: void QCborStreamReader::clear().

Source

pub unsafe fn container_depth(&self) -> c_int

Calls C++ function: int QCborStreamReader::containerDepth() const.

Source

pub unsafe fn current_offset(&self) -> c_longlong

Calls C++ function: long long QCborStreamReader::currentOffset() const.

Source

pub unsafe fn current_string_chunk_size(&self) -> c_longlong

Calls C++ function: long long QCborStreamReader::currentStringChunkSize() const.

Source

pub unsafe fn device(&self) -> QPtr<QIODevice>

Calls C++ function: QIODevice* QCborStreamReader::device() const.

Source

pub unsafe fn enter_container(&self) -> bool

Calls C++ function: bool QCborStreamReader::enterContainer().

Source

pub unsafe fn has_next(&self) -> bool

Calls C++ function: bool QCborStreamReader::hasNext() const.

Source

pub unsafe fn is_array(&self) -> bool

Calls C++ function: bool QCborStreamReader::isArray() const.

Source

pub unsafe fn is_bool(&self) -> bool

Calls C++ function: bool QCborStreamReader::isBool() const.

Source

pub unsafe fn is_byte_array(&self) -> bool

Calls C++ function: bool QCborStreamReader::isByteArray() const.

Source

pub unsafe fn is_container(&self) -> bool

Calls C++ function: bool QCborStreamReader::isContainer() const.

Source

pub unsafe fn is_double(&self) -> bool

Calls C++ function: bool QCborStreamReader::isDouble() const.

Source

pub unsafe fn is_false(&self) -> bool

Calls C++ function: bool QCborStreamReader::isFalse() const.

Source

pub unsafe fn is_float(&self) -> bool

Calls C++ function: bool QCborStreamReader::isFloat() const.

Source

pub unsafe fn is_float16(&self) -> bool

Calls C++ function: bool QCborStreamReader::isFloat16() const.

Source

pub unsafe fn is_integer(&self) -> bool

Calls C++ function: bool QCborStreamReader::isInteger() const.

Source

pub unsafe fn is_invalid(&self) -> bool

Calls C++ function: bool QCborStreamReader::isInvalid() const.

Source

pub unsafe fn is_length_known(&self) -> bool

Calls C++ function: bool QCborStreamReader::isLengthKnown() const.

Source

pub unsafe fn is_map(&self) -> bool

Calls C++ function: bool QCborStreamReader::isMap() const.

Source

pub unsafe fn is_negative_integer(&self) -> bool

Calls C++ function: bool QCborStreamReader::isNegativeInteger() const.

Source

pub unsafe fn is_null(&self) -> bool

Calls C++ function: bool QCborStreamReader::isNull() const.

Source

pub unsafe fn is_simple_type_0a(&self) -> bool

Calls C++ function: bool QCborStreamReader::isSimpleType() const.

Source

pub unsafe fn is_simple_type_1a(&self, st: QCborSimpleType) -> bool

Calls C++ function: bool QCborStreamReader::isSimpleType(QCborSimpleType st) const.

Source

pub unsafe fn is_string(&self) -> bool

Calls C++ function: bool QCborStreamReader::isString() const.

Source

pub unsafe fn is_tag(&self) -> bool

Calls C++ function: bool QCborStreamReader::isTag() const.

Source

pub unsafe fn is_true(&self) -> bool

Calls C++ function: bool QCborStreamReader::isTrue() const.

Source

pub unsafe fn is_undefined(&self) -> bool

Calls C++ function: bool QCborStreamReader::isUndefined() const.

Source

pub unsafe fn is_unsigned_integer(&self) -> bool

Calls C++ function: bool QCborStreamReader::isUnsignedInteger() const.

Source

pub unsafe fn is_valid(&self) -> bool

Calls C++ function: bool QCborStreamReader::isValid() const.

Source

pub unsafe fn last_error(&self) -> CppBox<QCborError>

Calls C++ function: QCborError QCborStreamReader::lastError().

Source

pub unsafe fn leave_container(&self) -> bool

Calls C++ function: bool QCborStreamReader::leaveContainer().

Source

pub unsafe fn length(&self) -> c_ulonglong

Calls C++ function: unsigned long long QCborStreamReader::length() const.

Source

pub unsafe fn new() -> CppBox<QCborStreamReader>

Calls C++ function: [constructor] void QCborStreamReader::QCborStreamReader().

Source

pub unsafe fn from_char_longlong( data: *const c_char, len: c_longlong, ) -> CppBox<QCborStreamReader>

Calls C++ function: [constructor] void QCborStreamReader::QCborStreamReader(const char* data, long long len).

Source

pub unsafe fn from_uchar_longlong( data: *const c_uchar, len: c_longlong, ) -> CppBox<QCborStreamReader>

Calls C++ function: [constructor] void QCborStreamReader::QCborStreamReader(const unsigned char* data, long long len).

Source

pub unsafe fn from_q_byte_array( data: impl CastInto<Ref<QByteArray>>, ) -> CppBox<QCborStreamReader>

Calls C++ function: [constructor] void QCborStreamReader::QCborStreamReader(const QByteArray& data).

Source

pub unsafe fn from_q_io_device( device: impl CastInto<Ptr<QIODevice>>, ) -> CppBox<QCborStreamReader>

Calls C++ function: [constructor] void QCborStreamReader::QCborStreamReader(QIODevice* device).

Source

pub unsafe fn next_1a(&self, max_recursion: c_int) -> bool

Calls C++ function: bool QCborStreamReader::next(int maxRecursion = …).

Source

pub unsafe fn next_0a(&self) -> bool

Calls C++ function: bool QCborStreamReader::next().

Source

pub unsafe fn parent_container_type(&self) -> Type

Calls C++ function: QCborStreamReader::Type QCborStreamReader::parentContainerType() const.

Source

pub unsafe fn read_byte_array(&self) -> CppBox<StringResultOfQByteArray>

Calls C++ function: QCborStreamReader::StringResult<QByteArray> QCborStreamReader::readByteArray().

Source

pub unsafe fn read_string(&self) -> CppBox<StringResultOfQString>

Calls C++ function: QCborStreamReader::StringResult<QString> QCborStreamReader::readString().

Source

pub unsafe fn read_string_chunk( &self, ptr: *mut c_char, maxlen: c_longlong, ) -> CppBox<StringResultOfLonglong>

Calls C++ function: QCborStreamReader::StringResult<long long> QCborStreamReader::readStringChunk(char* ptr, long long maxlen).

Source

pub unsafe fn reparse(&self)

Calls C++ function: void QCborStreamReader::reparse().

Source

pub unsafe fn reset(&self)

Calls C++ function: void QCborStreamReader::reset().

Source

pub unsafe fn set_device(&self, device: impl CastInto<Ptr<QIODevice>>)

Calls C++ function: void QCborStreamReader::setDevice(QIODevice* device).

Source

pub unsafe fn static_meta_object() -> Ref<QMetaObject>

Returns a reference to the staticMetaObject field.

Source

pub unsafe fn to_bool(&self) -> bool

Calls C++ function: bool QCborStreamReader::toBool() const.

Source

pub unsafe fn to_double(&self) -> c_double

Calls C++ function: double QCborStreamReader::toDouble() const.

Source

pub unsafe fn to_float(&self) -> c_float

Calls C++ function: float QCborStreamReader::toFloat() const.

Source

pub unsafe fn to_float16(&self) -> CppBox<Qfloat16>

Calls C++ function: qfloat16 QCborStreamReader::toFloat16() const.

Source

pub unsafe fn to_integer(&self) -> c_longlong

Calls C++ function: long long QCborStreamReader::toInteger() const.

Source

pub unsafe fn to_negative_integer(&self) -> QCborNegativeInteger

Calls C++ function: QCborNegativeInteger QCborStreamReader::toNegativeInteger() const.

Source

pub unsafe fn to_simple_type(&self) -> QCborSimpleType

Calls C++ function: QCborSimpleType QCborStreamReader::toSimpleType() const.

Source

pub unsafe fn to_tag(&self) -> QCborTag

Calls C++ function: QCborTag QCborStreamReader::toTag() const.

Source

pub unsafe fn to_unsigned_integer(&self) -> c_ulonglong

Calls C++ function: unsigned long long QCborStreamReader::toUnsignedInteger() const.

Source

pub unsafe fn type_(&self) -> Type

Calls C++ function: QCborStreamReader::Type QCborStreamReader::type() const.

Trait Implementations§

Source§

impl CppDeletable for QCborStreamReader

Source§

unsafe fn delete(&self)

Calls C++ function: [destructor] void QCborStreamReader::~QCborStreamReader().

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T, U> CastInto<U> for T
where U: CastFrom<T>,

Source§

unsafe fn cast_into(self) -> U

Performs the conversion. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> StaticUpcast<T> for T

Source§

unsafe fn static_upcast(ptr: Ptr<T>) -> Ptr<T>

Convert type of a const pointer. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.