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
-
Constructor Summary
Constructors Modifier Constructor Description QByteArrayView()
QByteArrayView(byte[] data)
QByteArrayView(QByteArray data)
protected
QByteArrayView(QtObject.QPrivateConstructor p)
Constructor for internal use only.QByteArrayView(String data)
QByteArrayView(ByteBuffer data)
-
Method Summary
Modifier and Type Method Description byte
at(long n)
protected QIterator<Byte>
begin()
void
chop(long n)
QByteArrayView
chopped(long len)
QByteArrayView
clone()
int
compareTo(QByteArrayView other)
boolean
contains(byte c)
boolean
contains(QByteArrayView a)
long
count(byte ch)
long
count(QByteArrayView a)
ByteBuffer
data()
protected QIterator<Byte>
end()
boolean
endsWith(byte c)
boolean
endsWith(QByteArrayView other)
boolean
equals(Object other)
Used to check if this object shares native resources with the other object if the other object is a subtype of QtJambiInterface.byte
first()
QByteArrayView
first(long n)
int
hashCode()
long
indexOf(byte ch)
Overloaded function forindexOf(byte, long)
withfrom = 0
.long
indexOf(byte ch, long from)
long
indexOf(QByteArrayView a)
Overloaded function forindexOf(io.qt.core.QByteArrayView, long)
withfrom = 0
.long
indexOf(QByteArrayView a, long from)
boolean
isEmpty()
boolean
isNull()
Iterator<Byte>
iterator()
byte
last()
QByteArrayView
last(long n)
long
lastIndexOf(byte ch)
Overloaded function forlastIndexOf(byte, long)
withfrom = -1
.long
lastIndexOf(byte ch, long from)
long
lastIndexOf(QByteArrayView a)
Overloaded function forlastIndexOf(io.qt.core.QByteArrayView, long)
withfrom = -1
.long
lastIndexOf(QByteArrayView a, long from)
int
length()
Deprecated.Use size() and port callers to qsizetype.long
size()
QByteArrayView
sliced(long pos)
QByteArrayView
sliced(long pos, long n)
boolean
startsWith(byte c)
boolean
startsWith(QByteArrayView other)
QByteArray
toByteArray()
void
truncate(long n)
-
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
-
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
Overloaded function for
lastIndexOf(io.qt.core.QByteArrayView, long)
withfrom = -1
. -
lastIndexOf
-
lastIndexOf
Overloaded function for
lastIndexOf(byte, long)
withfrom = -1
. -
lastIndexOf
-
length
Deprecated.Use size() and port callers to qsizetype. -
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
-