- 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
(byte [] data, int size) QByteArrayView
(QByteArray data) QByteArrayView
(String data) QByteArrayView
(ByteBuffer data) QByteArrayView
(ByteBuffer data, long size) -
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) Overloaded function forcompare(byte[], io.qt.core.Qt.CaseSensitivity)
withcs = io.qt.core.Qt.CaseSensitivity.CaseSensitive
.final int
compare
(byte [] a, Qt.CaseSensitivity cs) Overloaded function forcompare(io.qt.core.QByteArrayView, io.qt.core.Qt.CaseSensitivity)
.final int
Overloaded function forcompare(io.qt.core.QByteArray, io.qt.core.Qt.CaseSensitivity)
withcs = io.qt.core.Qt.CaseSensitivity.CaseSensitive
.final int
compare
(QByteArray a, Qt.CaseSensitivity cs) Overloaded function forcompare(io.qt.core.QByteArrayView, io.qt.core.Qt.CaseSensitivity)
.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
Overloaded function forcompare(java.lang.String, io.qt.core.Qt.CaseSensitivity)
withcs = io.qt.core.Qt.CaseSensitivity.CaseSensitive
.final int
compare
(String a, Qt.CaseSensitivity cs) Overloaded function forcompare(io.qt.core.QByteArrayView, io.qt.core.Qt.CaseSensitivity)
.final int
Overloaded function forcompare(java.nio.ByteBuffer, io.qt.core.Qt.CaseSensitivity)
withcs = io.qt.core.Qt.CaseSensitivity.CaseSensitive
.final int
compare
(ByteBuffer a, Qt.CaseSensitivity cs) Overloaded function forcompare(io.qt.core.QByteArrayView, io.qt.core.Qt.CaseSensitivity)
.int
Compares to other object depending on its type.final boolean
contains
(byte c) final boolean
contains
(byte [] a) Overloaded function forcontains(io.qt.core.QByteArrayView)
.final boolean
Overloaded function forcontains(io.qt.core.QByteArrayView)
.final boolean
final boolean
Overloaded function forcontains(io.qt.core.QByteArrayView)
.final long
count
(byte ch) final long
count
(byte [] a) Overloaded function forcount(io.qt.core.QByteArrayView)
.final long
count
(QByteArray a) Overloaded function forcount(io.qt.core.QByteArrayView)
.final long
final long
Overloaded function forcount(io.qt.core.QByteArrayView)
.final long
count
(ByteBuffer a) Overloaded function forcount(io.qt.core.QByteArrayView)
.final ByteBuffer
data()
protected final QSequentialConstIterator<@QtPrimitiveType Byte>
end()
final boolean
endsWith
(byte c) final boolean
endsWith
(byte [] other) Overloaded function forendsWith(io.qt.core.QByteArrayView)
.final boolean
endsWith
(QByteArray other) Overloaded function forendsWith(io.qt.core.QByteArrayView)
.final boolean
endsWith
(QByteArrayView other) final boolean
Overloaded function forendsWith(io.qt.core.QByteArrayView)
.final boolean
endsWith
(ByteBuffer other) Overloaded function forendsWith(io.qt.core.QByteArrayView)
.boolean
Checks for equality depending on the type of given object.final byte
first()
final QByteArrayView
first
(long n) static QByteArrayView
fromArray
(byte [] data) 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) Overloaded function forindexOf(byte[], long)
withfrom = 0
.final long
indexOf
(byte [] a, long from) Overloaded function forindexOf(io.qt.core.QByteArrayView, long)
.final long
indexOf
(byte ch, long from) final long
Overloaded function forindexOf(io.qt.core.QByteArray, long)
withfrom = 0
.final long
indexOf
(QByteArray a, long from) Overloaded function forindexOf(io.qt.core.QByteArrayView, long)
.final long
Overloaded function forindexOf(io.qt.core.QByteArrayView, long)
withfrom = 0
.final long
indexOf
(QByteArrayView a, long from) final long
Overloaded function forindexOf(java.lang.String, long)
withfrom = 0
.final long
Overloaded function forindexOf(io.qt.core.QByteArrayView, long)
.final long
Overloaded function forindexOf(java.nio.ByteBuffer, long)
withfrom = 0
.final long
indexOf
(ByteBuffer a, long from) Overloaded function forindexOf(io.qt.core.QByteArrayView, long)
.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) Overloaded function forlastIndexOf(io.qt.core.QByteArrayView)
.final long
lastIndexOf
(byte [] a, long from) Overloaded function forlastIndexOf(io.qt.core.QByteArrayView, long)
.final long
lastIndexOf
(byte ch, long from) final long
Overloaded function forlastIndexOf(io.qt.core.QByteArrayView)
.final long
lastIndexOf
(QByteArray a, long from) Overloaded function forlastIndexOf(io.qt.core.QByteArrayView, long)
.final long
final long
lastIndexOf
(QByteArrayView a, long from) final long
Overloaded function forlastIndexOf(io.qt.core.QByteArrayView)
.final long
lastIndexOf
(String a, long from) Overloaded function forlastIndexOf(io.qt.core.QByteArrayView, long)
.final long
Overloaded function forlastIndexOf(io.qt.core.QByteArrayView)
.final long
lastIndexOf
(ByteBuffer a, long from) Overloaded function forlastIndexOf(io.qt.core.QByteArrayView, long)
.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
(byte [] data) Overloaded function forqChecksum(byte[], io.qt.core.Qt.ChecksumType)
withstandard = io.qt.core.Qt.ChecksumType.ChecksumIso3309
.static short
qChecksum
(byte [] data, Qt.ChecksumType standard) Overloaded function forqChecksum(io.qt.core.QByteArrayView, io.qt.core.Qt.ChecksumType)
.static short
qChecksum
(QByteArray data) Overloaded function forqChecksum(io.qt.core.QByteArray, io.qt.core.Qt.ChecksumType)
withstandard = io.qt.core.Qt.ChecksumType.ChecksumIso3309
.static short
qChecksum
(QByteArray data, Qt.ChecksumType standard) Overloaded function forqChecksum(io.qt.core.QByteArrayView, io.qt.core.Qt.ChecksumType)
.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) static short
qChecksum
(ByteBuffer data) Overloaded function forqChecksum(java.nio.ByteBuffer, io.qt.core.Qt.ChecksumType)
withstandard = io.qt.core.Qt.ChecksumType.ChecksumIso3309
.static short
qChecksum
(ByteBuffer data, Qt.ChecksumType standard) Overloaded function forqChecksum(io.qt.core.QByteArrayView, io.qt.core.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 [] other) Overloaded function forstartsWith(io.qt.core.QByteArrayView)
.final boolean
startsWith
(QByteArray other) Overloaded function forstartsWith(io.qt.core.QByteArrayView)
.final boolean
startsWith
(QByteArrayView other) final boolean
startsWith
(String other) Overloaded function forstartsWith(io.qt.core.QByteArrayView)
.final boolean
startsWith
(ByteBuffer other) Overloaded function forstartsWith(io.qt.core.QByteArrayView)
.final byte []
toArray()
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) toString()
Seeoperator<<(QDebug,
QByteArrayView) 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, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
QByteArrayView
public QByteArrayView() -
QByteArrayView
public QByteArrayView(byte [] data) -
QByteArrayView
public QByteArrayView(byte [] data, int size) -
QByteArrayView
-
QByteArrayView
-
QByteArrayView
-
QByteArrayView
-
-
Method Details
-
at
-
begin
-
chop
-
chopped
-
compare
-
toArray
-
contains
-
contains
-
count
-
count
-
data
-
end
-
endsWith
-
endsWith
-
first
-
first
-
indexOf
-
indexOf
-
isEmpty
-
isNull
-
isValidUtf8
-
last
-
last
-
lastIndexOf
-
lastIndexOf
-
lastIndexOf
-
left
See
QByteArrayView::
left(qsizetype)const -
length
-
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
- Throws:
NumberFormatException
-
toShort
- Throws:
NumberFormatException
-
trimmed
-
truncate
-
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 tobyte
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,
QByteArrayView)
compared byByteBuffer
operator<(QByteArrayView,
QByteArrayView)
compared bybyte
operator<(QByteArrayView,
QByteArrayView)
compared byQByteArray
operator<(QByteArrayView,
QByteArray)
- Specified by:
compareTo
in interfaceComparable<Object>
-
hashCode
Returns the objects's hash code computed byqHash(QByteArrayView)
. -
fromArray
-
toString
See
operator<<(QDebug,
QByteArrayView) -
clone
Creates and returns a copy of this object.
-
compare
Overloaded function for
compare(io.qt.core.QByteArrayView, io.qt.core.Qt.CaseSensitivity)
withcs = io.qt.core.Qt.CaseSensitivity.CaseSensitive
. -
compare
Overloaded function for
compare(java.lang.String, io.qt.core.Qt.CaseSensitivity)
withcs = io.qt.core.Qt.CaseSensitivity.CaseSensitive
. -
compare
Overloaded function for
compare(io.qt.core.QByteArrayView, io.qt.core.Qt.CaseSensitivity)
. -
compare
Overloaded function for
compare(io.qt.core.QByteArray, io.qt.core.Qt.CaseSensitivity)
withcs = io.qt.core.Qt.CaseSensitivity.CaseSensitive
. -
compare
Overloaded function for
compare(io.qt.core.QByteArrayView, io.qt.core.Qt.CaseSensitivity)
. -
compare
Overloaded function for
compare(java.nio.ByteBuffer, io.qt.core.Qt.CaseSensitivity)
withcs = io.qt.core.Qt.CaseSensitivity.CaseSensitive
. -
compare
Overloaded function for
compare(io.qt.core.QByteArrayView, io.qt.core.Qt.CaseSensitivity)
. -
compare
Overloaded function for
compare(byte[], io.qt.core.Qt.CaseSensitivity)
withcs = io.qt.core.Qt.CaseSensitivity.CaseSensitive
. -
compare
Overloaded function for
compare(io.qt.core.QByteArrayView, io.qt.core.Qt.CaseSensitivity)
. -
contains
Overloaded function for
contains(io.qt.core.QByteArrayView)
. -
contains
Overloaded function for
contains(io.qt.core.QByteArrayView)
. -
contains
Overloaded function for
contains(io.qt.core.QByteArrayView)
. -
count
Overloaded function for
count(io.qt.core.QByteArrayView)
. -
count
Overloaded function for
count(io.qt.core.QByteArrayView)
. -
count
Overloaded function for
count(io.qt.core.QByteArrayView)
. -
count
Overloaded function for
count(io.qt.core.QByteArrayView)
. -
endsWith
Overloaded function for
endsWith(io.qt.core.QByteArrayView)
. -
endsWith
Overloaded function for
endsWith(io.qt.core.QByteArrayView)
. -
endsWith
Overloaded function for
endsWith(io.qt.core.QByteArrayView)
. -
endsWith
Overloaded function for
endsWith(io.qt.core.QByteArrayView)
. -
indexOf
Overloaded function for
indexOf(io.qt.core.QByteArrayView, long)
withfrom = 0
. -
indexOf
Overloaded function for
indexOf(java.lang.String, long)
withfrom = 0
. -
indexOf
Overloaded function for
indexOf(io.qt.core.QByteArrayView, long)
. -
indexOf
Overloaded function for
indexOf(io.qt.core.QByteArray, long)
withfrom = 0
. -
indexOf
Overloaded function for
indexOf(io.qt.core.QByteArrayView, long)
. -
indexOf
Overloaded function for
indexOf(java.nio.ByteBuffer, long)
withfrom = 0
. -
indexOf
Overloaded function for
indexOf(io.qt.core.QByteArrayView, long)
. -
indexOf
Overloaded function for
indexOf(byte[], long)
withfrom = 0
. -
indexOf
Overloaded function for
indexOf(io.qt.core.QByteArrayView, long)
. -
indexOf
Overloaded function for
indexOf(byte, long)
withfrom = 0
. -
lastIndexOf
Overloaded function for
lastIndexOf(io.qt.core.QByteArrayView)
. -
lastIndexOf
Overloaded function for
lastIndexOf(io.qt.core.QByteArrayView)
. -
lastIndexOf
Overloaded function for
lastIndexOf(io.qt.core.QByteArrayView)
. -
lastIndexOf
Overloaded function for
lastIndexOf(io.qt.core.QByteArrayView)
. -
lastIndexOf
Overloaded function for
lastIndexOf(io.qt.core.QByteArrayView, long)
. -
lastIndexOf
Overloaded function for
lastIndexOf(io.qt.core.QByteArrayView, long)
. -
lastIndexOf
Overloaded function for
lastIndexOf(io.qt.core.QByteArrayView, long)
. -
lastIndexOf
Overloaded function for
lastIndexOf(io.qt.core.QByteArrayView, long)
. -
lastIndexOf
Overloaded function for
lastIndexOf(byte, long)
withfrom = -1
. -
mid
Overloaded function for
mid(long, long)
withn = -1
. -
startsWith
Overloaded function for
startsWith(io.qt.core.QByteArrayView)
. -
startsWith
Overloaded function for
startsWith(io.qt.core.QByteArrayView)
. -
startsWith
Overloaded function for
startsWith(io.qt.core.QByteArrayView)
. -
startsWith
Overloaded function for
startsWith(io.qt.core.QByteArrayView)
. -
toInt
Overloaded function for
toInt(int)
withbase = 10
.- Throws:
NumberFormatException
-
toShort
Overloaded function for
toShort(int)
withbase = 10
.- Throws:
NumberFormatException
-
qChecksum
Overloaded function for
qChecksum(io.qt.core.QByteArrayView, io.qt.core.Qt.ChecksumType)
withstandard = io.qt.core.Qt.ChecksumType.ChecksumIso3309
. -
qChecksum
Overloaded function for
qChecksum(io.qt.core.QByteArray, io.qt.core.Qt.ChecksumType)
withstandard = io.qt.core.Qt.ChecksumType.ChecksumIso3309
. -
qChecksum
Overloaded function for
qChecksum(io.qt.core.QByteArrayView, io.qt.core.Qt.ChecksumType)
. -
qChecksum
Overloaded function for
qChecksum(java.nio.ByteBuffer, io.qt.core.Qt.ChecksumType)
withstandard = io.qt.core.Qt.ChecksumType.ChecksumIso3309
. -
qChecksum
Overloaded function for
qChecksum(io.qt.core.QByteArrayView, io.qt.core.Qt.ChecksumType)
. -
qChecksum
public static short qChecksum(byte [] data) Overloaded function for
qChecksum(byte[], io.qt.core.Qt.ChecksumType)
withstandard = io.qt.core.Qt.ChecksumType.ChecksumIso3309
. -
qChecksum
Overloaded function for
qChecksum(io.qt.core.QByteArrayView, io.qt.core.Qt.ChecksumType)
.
-