java.lang.Object
io.qt.internal.QtJambiObject
io.qt.QtObject
io.qt.core.QByteArrayView
- All Implemented Interfaces:
QtObjectInterface
,Cloneable
,Comparable<QByteArrayView>
,Iterable<Byte>
public class QByteArrayView
extends QtObject
implements Comparable<QByteArrayView>, Iterable<Byte>, Cloneable
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
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) begin()
final void
chop
(long n) final QByteArrayView
chopped
(long len) clone()
final int
Overloaded function forcompare(io.qt.core.QByteArrayView, io.qt.core.Qt.CaseSensitivity)
withcs = io.qt.core.Qt.CaseSensitivity.CaseSensitive
.final int
int
compareTo
(QByteArrayView other) final boolean
contains
(byte c) final boolean
final long
count
(byte ch) final long
final ByteBuffer
data()
end()
final boolean
endsWith
(byte c) final boolean
endsWith
(QByteArrayView other) boolean
Used to check if this object shares native resources with the other object if the other object is a subtype of QtJambiInterface.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 ch, long from) final long
Overloaded function forindexOf(io.qt.core.QByteArrayView, long)
withfrom = 0
.final long
indexOf
(QByteArrayView 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 ch, long from) final long
final long
lastIndexOf
(QByteArrayView a, long from) final long
length()
final long
size()
final QByteArrayView
sliced
(long pos) final QByteArrayView
sliced
(long pos, long n) final boolean
startsWith
(byte c) final boolean
startsWith
(QByteArrayView other) 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
-
iterator
-
equals
Description copied from class:QtObject
Used to check if this object shares native resources with the other object if the other object is a subtype of QtJambiInterface. Otherwise it will return the result of calling the super class implementation. -
compareTo
- Specified by:
compareTo
in interfaceComparable<QByteArrayView>
-
hashCode
-
clone
-