java.lang.Object
io.qt.internal.QtJambiObject
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 class QByteArrayView
-
Nested Class Summary
Nested classes/interfaces inherited from class io.qt.QtObject
QtObject.QPrivateConstructor -
Constructor Summary
ConstructorsModifierConstructorDescriptionQByteArrayView(byte[] data) QByteArrayView(QByteArray data) protectedConstructor for internal use only.QByteArrayView(String data) QByteArrayView(ByteBuffer data) -
Method Summary
Modifier and TypeMethodDescriptionfinal byteat(long n) begin()final voidchop(long n) final QByteArrayViewchopped(long len) clone()final intcompare(byte[] a) final intcompare(byte[] a, Qt.CaseSensitivity cs) final intfinal intcompare(QByteArray a, Qt.CaseSensitivity cs) final intOverloaded function forcompare(io.qt.core.QByteArrayView, io.qt.core.Qt.CaseSensitivity)withcs = io.qt.core.Qt.CaseSensitivity.CaseSensitive.final intfinal intfinal intcompare(String a, Qt.CaseSensitivity cs) final intfinal intcompare(ByteBuffer a, Qt.CaseSensitivity cs) intfinal booleancontains(byte c) final booleancontains(byte[] a) final booleanfinal booleanfinal booleanfinal booleanfinal longcount(byte ch) final longcount(byte[] a) final longcount(QByteArray a) final longfinal longfinal longcount(ByteBuffer a) final ByteBufferdata()end()final booleanendsWith(byte c) final booleanendsWith(byte[] a) final booleanfinal booleanendsWith(QByteArrayView other) final booleanfinal booleanbooleanUsed to check if this object shares native resources with the other object if the other object is a subtype of QtJambiInterface.final bytefirst()final QByteArrayViewfirst(long n) inthashCode()final longindexOf(byte ch) Overloaded function forindexOf(byte, long)withfrom = 0.final longindexOf(byte[] a) final longindexOf(byte[] a, long from) final longindexOf(byte ch, long from) final longfinal longindexOf(QByteArray a, long from) final longOverloaded function forindexOf(io.qt.core.QByteArrayView, long)withfrom = 0.final longindexOf(QByteArrayView a, long from) final longfinal longfinal longfinal longindexOf(ByteBuffer a, long from) final booleanisEmpty()final booleanisNull()iterator()final bytelast()final QByteArrayViewlast(long n) final longlastIndexOf(byte ch) Overloaded function forlastIndexOf(byte, long)withfrom = -1.final longlastIndexOf(byte[] a) final longlastIndexOf(byte[] a, long from) final longlastIndexOf(byte ch, long from) final longfinal longlastIndexOf(QByteArray a, long from) final longfinal longlastIndexOf(QByteArrayView a, long from) final longfinal longlastIndexOf(String a, long from) final longfinal longlastIndexOf(ByteBuffer a, long from) final longlength()final longsize()final QByteArrayViewsliced(long pos) final QByteArrayViewsliced(long pos, long n) final booleanstartsWith(byte c) final booleanstartsWith(byte[] a) final booleanfinal booleanstartsWith(QByteArrayView other) final booleanstartsWith(String a) final booleanfinal QByteArrayfinal voidtruncate(long n) Methods inherited from class io.qt.QtObject
dispose, isDisposedMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods 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:QtObjectUsed 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:
compareToin 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
-