- 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
- Since:
- This class was introduced in Qt 6.0.
-
Constructor Summary
ConstructorDescriptionQByteArrayView
(byte [] data) QByteArrayView
(byte [] data, int offset, int length) QByteArrayView
(QByteArray data) QByteArrayView
(QByteArrayView other) 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) 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)
.final boolean
equals
(byte [] rhs) Overloaded function forequals(io.qt.core.QByteArrayView)
.final boolean
equals
(char rhs) final boolean
equals
(QByteArray rhs) Overloaded function forequals(io.qt.core.QByteArrayView)
.final boolean
equals
(QByteArrayView rhs) final boolean
Overloaded function forequals(io.qt.core.QByteArrayView)
.boolean
Checks for equality depending on the type of given object.final boolean
equals
(ByteBuffer rhs) Overloaded function forequals(io.qt.core.QByteArrayView)
.final byte
first()
final QByteArrayView
first
(long n) static QByteArrayView
fromArray
(byte [] data) static QByteArrayView
fromArray
(byte [] data, int offset, int length) 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 long
max_size()
static long
maxSize()
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) 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
slice
(long pos) final QByteArrayView
slice
(long pos, long n) 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
- Parameters:
other
-
-
QByteArrayView
public QByteArrayView(byte [] data) -
QByteArrayView
public QByteArrayView(byte [] data, int offset, int length) -
QByteArrayView
-
QByteArrayView
-
QByteArrayView
-
-
Method Details
-
at
- Parameters:
n
-- Returns:
-
begin
- Returns:
-
chop
- Parameters:
n
-
-
chopped
- Parameters:
len
-- Returns:
-
compare
- Parameters:
a
-cs
-- Returns:
- Since:
- This function was introduced in Qt 6.2.
-
toArray
- Returns:
-
contains
- Parameters:
a
-- Returns:
-
contains
- Parameters:
c
-- Returns:
-
count
- Parameters:
a
-- Returns:
-
count
- Parameters:
ch
-- Returns:
-
data
- Returns:
-
end
- Returns:
-
endsWith
- Parameters:
other
-- Returns:
-
endsWith
- Parameters:
c
-- Returns:
-
first
- Returns:
-
first
- Parameters:
n
-- Returns:
-
indexOf
- Parameters:
a
-from
-- Returns:
-
indexOf
- Parameters:
ch
-from
-- Returns:
-
isEmpty
- Returns:
-
isNull
- Returns:
-
isValidUtf8
- Returns:
- Since:
- This function was introduced in Qt 6.3.
-
last
- Returns:
-
last
- Parameters:
n
-- Returns:
-
lastIndexOf
- Parameters:
a
-- Returns:
- Since:
- This function was introduced in Qt 6.2.
-
lastIndexOf
- Parameters:
a
-from
-- Returns:
-
lastIndexOf
- Parameters:
ch
-from
-- Returns:
-
left
See
QByteArrayView::
left(qsizetype)const - Parameters:
n
-- Returns:
-
length
- Returns:
-
max_size
- Returns:
- Since:
- This function was introduced in Qt 6.8.
-
mid
See
QByteArrayView::
mid(qsizetype, qsizetype)const - Parameters:
pos
-n
-- Returns:
-
equals
- Parameters:
rhs
-- Returns:
-
equals
- Parameters:
rhs
-- Returns:
-
get
- Parameters:
n
-- Returns:
-
right
See
QByteArrayView::
right(qsizetype)const - Parameters:
n
-- Returns:
-
size
- Returns:
-
slice
- Parameters:
pos
-- Returns:
- Since:
- This function was introduced in Qt 6.8.
-
slice
- Parameters:
pos
-n
-- Returns:
- Since:
- This function was introduced in Qt 6.8.
-
sliced
- Parameters:
pos
-- Returns:
-
sliced
- Parameters:
pos
-n
-- Returns:
-
startsWith
- Parameters:
other
-- Returns:
-
startsWith
- Parameters:
c
-- Returns:
-
toByteArray
- Returns:
-
toDouble
- Returns:
- Throws:
NumberFormatException
- Since:
- This function was introduced in Qt 6.3.
-
toFloat
- Returns:
- Throws:
NumberFormatException
- Since:
- This function was introduced in Qt 6.3.
-
toInt
- Parameters:
base
-- Returns:
- Throws:
NumberFormatException
- Since:
- This function was introduced in Qt 6.3.
-
toShort
- Parameters:
base
-- Returns:
- Throws:
NumberFormatException
- Since:
- This function was introduced in Qt 6.3.
-
trimmed
- Returns:
- Since:
- This function was introduced in Qt 6.3.
-
truncate
- Parameters:
n
-
-
maxSize
public static long maxSize()- Returns:
- Since:
- This function was introduced in Qt 6.8.
-
qChecksum
- Parameters:
data
-standard
-- Returns:
-
iterator
Returns an iterator for this iterable object.- Specified by:
iterator
in interfaceIterable<@QtPrimitiveType Byte>
- See Also:
-
equals
Checks for equality depending on the type of given object.
ckecked by toQByteArrayView
operator==(QByteArrayView,
QByteArrayView)
ckecked by toString
operator==(QByteArrayView,
QByteArrayView)
ckecked by toQByteArray
operator==(QByteArrayView,
QByteArrayView)
ckecked by toByteBuffer
operator==(QByteArrayView,
QByteArrayView) byte[]
ckecked by tooperator==(QByteArrayView,
QByteArrayView)
ckecked by toCharacter
operator==(QByteArrayView,
QChar)
-
compareTo
Compares to other object depending on its type.
compared byQByteArrayView
operator<(QByteArrayView,
QByteArrayView)
compared byString
operator<(QByteArrayView,
QByteArrayView)
compared byQByteArray
operator<(QByteArrayView,
QByteArrayView)
compared byByteBuffer
operator<(QByteArrayView,
QByteArrayView) byte[]
compared byoperator<(QByteArrayView,
QByteArrayView)
compared byCharacter
operator<(QByteArrayView,
QChar)
- Specified by:
compareTo
in interfaceComparable<Object>
-
hashCode
Returns the objects's hash code computed byqHash(QByteArrayView)
. -
fromArray
-
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(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)
. -
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)
. -
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(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(java.lang.String, 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
. -
equals
Overloaded function for
equals(io.qt.core.QByteArrayView)
. -
equals
Overloaded function for
equals(io.qt.core.QByteArrayView)
. -
equals
Overloaded function for
equals(io.qt.core.QByteArrayView)
. -
equals
Overloaded function for
equals(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)
. -
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)
.
-