java.lang.Object
io.qt.internal.NativeUtility.Object
io.qt.QtObject
io.qt.core.QByteArrayView
- All Implemented Interfaces:
QtObjectInterface
,Cloneable
,Comparable<Object>
,Iterable<Byte>
public class QByteArrayView
extends QtObject
implements Comparable<Object>, Iterable<Byte>, Cloneable
View on an array of bytes with a read-only subset of the QByteArray API
Java wrapper for Qt's class QByteArrayView
-
Nested Class Summary
Nested classes/interfaces inherited from class io.qt.QtObject
QtObject.QPrivateConstructor
-
Constructor Summary
ModifierConstructorDescriptionQByteArrayView
(byte[] data) QByteArrayView
(QByteArray data) protected
Constructor for internal use only.QByteArrayView
(String data) QByteArrayView
(ByteBuffer data) -
Method Summary
Modifier and TypeMethodDescriptionfinal byte
at
(long n) protected final QSequentialConstIterator<Byte>
begin()
final void
chop
(long n) final QByteArrayView
chopped
(long len) clone()
final int
compare
(byte[] a) final int
compare
(byte[] a, Qt.CaseSensitivity cs) final int
final int
compare
(QByteArray 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
(String a, Qt.CaseSensitivity cs) final int
final int
compare
(ByteBuffer a, Qt.CaseSensitivity cs) int
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
count
(QByteArray a) final long
final long
final long
count
(ByteBuffer a) final ByteBuffer
data()
protected final QSequentialConstIterator<Byte>
end()
final boolean
endsWith
(byte c) final boolean
endsWith
(byte[] a) final boolean
final boolean
endsWith
(QByteArrayView other) final boolean
final boolean
boolean
Used to check if this object shares the same native counterpart with the other object, i.e. the objects are equals if their native counterparts are identical.final byte
first()
final QByteArrayView
first
(long n) int
hashCode()
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
final long
indexOf
(QByteArray a, 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
final long
final long
indexOf
(ByteBuffer a, long from) final boolean
isEmpty()
final boolean
isNull()
iterator()
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
(QByteArray a, long from) final long
final long
lastIndexOf
(QByteArrayView a, long from) final long
final long
lastIndexOf
(String a, long from) final long
final long
lastIndexOf
(ByteBuffer a, long from) final long
length()
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) 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
final boolean
startsWith
(QByteArrayView other) final boolean
startsWith
(String a) final boolean
final QByteArray
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
Constructor for internal use only.- Parameters:
p
- expected to benull
.
-
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
-
last
-
last
-
lastIndexOf
-
lastIndexOf
-
lastIndexOf
Overloaded function for
lastIndexOf(byte, long)
withfrom = -1
. -
lastIndexOf
-
length
-
size
-
sliced
-
sliced
-
startsWith
-
startsWith
-
toByteArray
-
truncate
-
qChecksum
Overloaded function for
qChecksum(io.qt.core.QByteArrayView, io.qt.core.Qt.ChecksumType)
withstandard = io.qt.core.Qt.ChecksumType.ChecksumIso3309
. -
qChecksum
-
iterator
-
equals
Description copied from class:QtObject
Used to check if this object shares the same native counterpart with the other object, i.e. the objects are equals if their native counterparts are identical. Qt value types override this method to make a value comparison. Otherwise it will return the result of calling the super class implementation. -
compareTo
- Specified by:
compareTo
in interfaceComparable<Object>
-
hashCode
-
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
-