- All Implemented Interfaces:
QtObjectInterface
,Cloneable
,Comparable<Object>
,Iterable<@QtPrimitiveType Byte>
View on an array of bytes with a read-only subset of the QByteArray API
Java wrapper for Qt class QByteArrayView
-
Nested Class Summary
Nested classes/interfaces inherited from class io.qt.QtObject
QtObject.QPrivateConstructor
-
Constructor Summary
ConstructorDescriptionQByteArrayView
(byte[] data) QByteArrayView
(QByteArray data) QByteArrayView
(String data) QByteArrayView
(ByteBuffer data) -
Method Summary
Modifier and TypeMethodDescriptionfinal byte
at
(long n) protected final QSequentialConstIterator<@QtPrimitiveType Byte>
begin()
final void
chop
(long n) final QByteArrayView
chopped
(long len) clone()
Creates and returns a copy of this object.final int
compare
(byte[] a) final int
compare
(byte[] a, Qt.CaseSensitivity cs) final int
Overloaded function forcompare(io.qt.core.QByteArrayView, io.qt.core.Qt.CaseSensitivity)
withcs = io.qt.core.Qt.CaseSensitivity.CaseSensitive
.final int
final int
final int
compare
(QByteArray a, Qt.CaseSensitivity cs) final int
final int
compare
(String a, Qt.CaseSensitivity cs) final int
final int
compare
(ByteBuffer a, Qt.CaseSensitivity cs) int
Compares to other object depending on its type.final boolean
contains
(byte c) final boolean
contains
(byte[] a) final boolean
final boolean
final boolean
final boolean
final long
count
(byte ch) final long
count
(byte[] a) final long
final long
count
(QByteArray a) final long
final long
count
(ByteBuffer a) final ByteBuffer
data()
protected final QSequentialConstIterator<@QtPrimitiveType Byte>
end()
final boolean
endsWith
(byte c) final boolean
endsWith
(byte[] a) final boolean
endsWith
(QByteArrayView other) final boolean
final boolean
final boolean
boolean
Checks for equality depending on the type of given object.final byte
first()
final QByteArrayView
first
(long n) final byte
get
(long n) int
hashCode()
Returns the objects's hash code computed byqHash(QByteArrayView)
.final long
indexOf
(byte ch) Overloaded function forindexOf(byte, long)
withfrom = 0
.final long
indexOf
(byte[] a) final long
indexOf
(byte[] a, long from) final long
indexOf
(byte ch, long from) final long
Overloaded function forindexOf(io.qt.core.QByteArrayView, long)
withfrom = 0
.final long
indexOf
(QByteArrayView a, long from) final long
final long
indexOf
(QByteArray a, long from) final long
final long
final long
final long
indexOf
(ByteBuffer a, long from) final boolean
isEmpty()
final boolean
isNull()
final boolean
iterator()
Returns an iterator for this iterable object.final byte
last()
final QByteArrayView
last
(long n) final long
lastIndexOf
(byte ch) Overloaded function forlastIndexOf(byte, long)
withfrom = -1
.final long
lastIndexOf
(byte[] a) final long
lastIndexOf
(byte[] a, long from) final long
lastIndexOf
(byte ch, long from) final long
final long
lastIndexOf
(QByteArrayView a, long from) final long
final long
lastIndexOf
(QByteArray a, long from) final long
final long
lastIndexOf
(String a, long from) final long
final long
lastIndexOf
(ByteBuffer a, long from) final QByteArrayView
left
(long n) SeeQByteArrayView::
left(qsizetype)const final long
length()
final QByteArrayView
mid
(long pos) Overloaded function formid(long, long)
withn = -1
.final QByteArrayView
mid
(long pos, long n) SeeQByteArrayView::
mid(qsizetype, qsizetype)const static short
qChecksum
(QByteArrayView data) Overloaded function forqChecksum(io.qt.core.QByteArrayView, io.qt.core.Qt.ChecksumType)
withstandard = io.qt.core.Qt.ChecksumType.ChecksumIso3309
.static short
qChecksum
(QByteArrayView data, Qt.ChecksumType standard) SeeqChecksum(QByteArrayView,
Qt::ChecksumType) final QByteArrayView
right
(long n) SeeQByteArrayView::
right(qsizetype)const final long
size()
final QByteArrayView
sliced
(long pos) final QByteArrayView
sliced
(long pos, long n) final boolean
startsWith
(byte c) final boolean
startsWith
(byte[] a) final boolean
startsWith
(QByteArrayView other) final boolean
final boolean
startsWith
(String a) final boolean
final QByteArray
final double
toDouble()
final float
toFloat()
final int
toInt()
Overloaded function fortoInt(int)
withbase = 10
.final int
toInt
(int base) final short
toShort()
Overloaded function fortoShort(int)
withbase = 10
.final short
toShort
(int base) final QByteArrayView
trimmed()
final void
truncate
(long n) Methods inherited from class io.qt.QtObject
dispose, isDisposed
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
QByteArrayView
public QByteArrayView() -
QByteArrayView
public QByteArrayView(byte[] data) -
QByteArrayView
-
QByteArrayView
-
QByteArrayView
-
-
Method Details
-
at
-
begin
-
chop
-
chopped
-
compare
Overloaded function for
compare(io.qt.core.QByteArrayView, io.qt.core.Qt.CaseSensitivity)
withcs = io.qt.core.Qt.CaseSensitivity.CaseSensitive
. -
compare
-
contains
-
contains
-
count
-
count
-
data
-
end
-
endsWith
-
endsWith
-
first
-
first
-
indexOf
Overloaded function for
indexOf(io.qt.core.QByteArrayView, long)
withfrom = 0
. -
indexOf
-
indexOf
Overloaded function for
indexOf(byte, long)
withfrom = 0
. -
indexOf
-
isEmpty
-
isNull
-
isValidUtf8
-
last
-
last
-
lastIndexOf
-
lastIndexOf
-
lastIndexOf
Overloaded function for
lastIndexOf(byte, long)
withfrom = -1
. -
lastIndexOf
-
left
See
QByteArrayView::
left(qsizetype)const -
length
-
mid
Overloaded function for
mid(long, long)
withn = -1
. -
mid
See
QByteArrayView::
mid(qsizetype, qsizetype)const -
get
-
right
See
QByteArrayView::
right(qsizetype)const -
size
-
sliced
-
sliced
-
startsWith
-
startsWith
-
toByteArray
-
toDouble
- Throws:
NumberFormatException
-
toFloat
- Throws:
NumberFormatException
-
toInt
Overloaded function for
toInt(int)
withbase = 10
.- Throws:
NumberFormatException
-
toInt
- Throws:
NumberFormatException
-
toShort
Overloaded function for
toShort(int)
withbase = 10
.- Throws:
NumberFormatException
-
toShort
- Throws:
NumberFormatException
-
trimmed
-
truncate
-
qChecksum
Overloaded function for
qChecksum(io.qt.core.QByteArrayView, io.qt.core.Qt.ChecksumType)
withstandard = io.qt.core.Qt.ChecksumType.ChecksumIso3309
. -
qChecksum
See
qChecksum(QByteArrayView,
Qt::ChecksumType) -
iterator
Returns an iterator for this iterable object. -
equals
Checks for equality depending on the type of given object.
ckecked by toQByteArrayView
operator==(QByteArrayView,
QByteArrayView)
ckecked by toQByteArray
operator==(QByteArrayView,
QByteArray)
-
compareTo
Compares to other object depending on its type.
compared byQByteArrayView
operator<(QByteArrayView,
QByteArrayView)
compared byQByteArray
operator<(QByteArrayView,
QByteArray)
- Specified by:
compareTo
in interfaceComparable<Object>
-
hashCode
Returns the objects's hash code computed byqHash(QByteArrayView)
. -
compare
-
compare
-
compare
-
compare
-
compare
-
compare
-
compare
-
compare
-
contains
-
contains
-
contains
-
contains
-
endsWith
-
endsWith
-
endsWith
-
endsWith
-
startsWith
-
startsWith
-
startsWith
-
startsWith
-
count
-
count
-
count
-
count
-
indexOf
-
indexOf
-
indexOf
-
indexOf
-
indexOf
-
indexOf
-
indexOf
-
indexOf
-
lastIndexOf
-
lastIndexOf
-
lastIndexOf
-
lastIndexOf
-
lastIndexOf
-
lastIndexOf
-
lastIndexOf
-
lastIndexOf
-
clone
Creates and returns a copy of this object.
-