All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.qt.core.QByteArrayView Maven / Gradle / Ivy

There is a newer version: 6.8.0
Show newest version
package io.qt.core;

import io.qt.*;


/**
 * 

View on an array of bytes with a read-only subset of the QByteArray API

*

Java wrapper for Qt class QByteArrayView

*/ public class QByteArrayView extends QtObject implements java.lang.Comparable<@StrictNonNull Object>, java.lang.Iterable, java.lang.Cloneable { static { QtJambi_LibraryUtilities.initialize(); } /** *

See QByteArrayView::QByteArrayView()

*/ public QByteArrayView(){ super((QPrivateConstructor)null); initialize_native(this); } private native static void initialize_native(QByteArrayView instance); /** *

See QByteArrayView::QByteArrayView(QByteArrayView)

*/ public QByteArrayView(io.qt.core.@NonNull QByteArrayView other){ super((QPrivateConstructor)null); initialize_native(this, other); } private native static void initialize_native(QByteArrayView instance, io.qt.core.QByteArrayView other); /** *

See QByteArrayView::at(qsizetype)const

*/ @QtUninvokable public final byte at(long n){ return at_native_qsizetype_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), n); } @QtUninvokable private native byte at_native_qsizetype_constfct(long __this__nativeId, long n); /** *

See QByteArrayView::begin()const

*/ @QtUninvokable protected final io.qt.core.@NonNull QSequentialConstIterator begin(){ return begin_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native io.qt.core.QSequentialConstIterator begin_native_constfct(long __this__nativeId); /** *

See QByteArrayView::chop(qsizetype)

*/ @QtUninvokable public final void chop(long n){ chop_native_qsizetype(QtJambi_LibraryUtilities.internal.nativeId(this), n); } @QtUninvokable private native void chop_native_qsizetype(long __this__nativeId, long n); /** *

See QByteArrayView::chopped(qsizetype)const

*/ @QtUninvokable public final io.qt.core.@NonNull QByteArrayView chopped(long len){ return chopped_native_qsizetype_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), len); } @QtUninvokable private native io.qt.core.QByteArrayView chopped_native_qsizetype_constfct(long __this__nativeId, long len); /** *

See QByteArrayView::compare(QByteArrayView,Qt::CaseSensitivity)const

*/ @QtUninvokable public final int compare(io.qt.core.@NonNull QByteArrayView a, io.qt.core.Qt.@NonNull CaseSensitivity cs){ return compare_native_QByteArrayView_Qt_CaseSensitivity_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(a), cs.value()); } @QtUninvokable private native int compare_native_QByteArrayView_Qt_CaseSensitivity_constfct(long __this__nativeId, long a, int cs); /** *

See QByteArrayView::constData()const

*/ @QtUninvokable public final byte @StrictNonNull[] toArray(){ return toArray_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native byte[] toArray_native_constfct(long __this__nativeId); /** *

See QByteArrayView::contains(QByteArrayView)const

*/ @QtUninvokable public final boolean contains(io.qt.core.@NonNull QByteArrayView a){ return contains_native_QByteArrayView_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(a)); } @QtUninvokable private native boolean contains_native_QByteArrayView_constfct(long __this__nativeId, long a); /** *

See QByteArrayView::contains(char)const

*/ @QtUninvokable public final boolean contains(byte c){ return contains_native_char_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), c); } @QtUninvokable private native boolean contains_native_char_constfct(long __this__nativeId, byte c); /** *

See QByteArrayView::count(QByteArrayView)const

*/ @QtUninvokable public final long count(io.qt.core.@NonNull QByteArrayView a){ return count_native_QByteArrayView_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(a)); } @QtUninvokable private native long count_native_QByteArrayView_constfct(long __this__nativeId, long a); /** *

See QByteArrayView::count(char)const

*/ @QtUninvokable public final long count(byte ch){ return count_native_char_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), ch); } @QtUninvokable private native long count_native_char_constfct(long __this__nativeId, byte ch); /** *

See QByteArrayView::data()const

*/ @QtUninvokable public final java.nio.@Nullable ByteBuffer data(){ return data_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native java.nio.ByteBuffer data_native_constfct(long __this__nativeId); /** *

See QByteArrayView::end()const

*/ @QtUninvokable protected final io.qt.core.@NonNull QSequentialConstIterator end(){ return end_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native io.qt.core.QSequentialConstIterator end_native_constfct(long __this__nativeId); /** *

See QByteArrayView::endsWith(QByteArrayView)const

*/ @QtUninvokable public final boolean endsWith(io.qt.core.@NonNull QByteArrayView other){ return endsWith_native_QByteArrayView_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(other)); } @QtUninvokable private native boolean endsWith_native_QByteArrayView_constfct(long __this__nativeId, long other); /** *

See QByteArrayView::endsWith(char)const

*/ @QtUninvokable public final boolean endsWith(byte c){ return endsWith_native_char_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), c); } @QtUninvokable private native boolean endsWith_native_char_constfct(long __this__nativeId, byte c); /** *

See QByteArrayView::first()const

*/ @QtUninvokable public final byte first(){ return first_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native byte first_native_constfct(long __this__nativeId); /** *

See QByteArrayView::first(qsizetype)const

*/ @QtUninvokable public final io.qt.core.@NonNull QByteArrayView first(long n){ return first_native_qsizetype_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), n); } @QtUninvokable private native io.qt.core.QByteArrayView first_native_qsizetype_constfct(long __this__nativeId, long n); /** *

See QByteArrayView::indexOf(QByteArrayView,qsizetype)const

*/ @QtUninvokable public final long indexOf(io.qt.core.@NonNull QByteArrayView a, long from){ return indexOf_native_QByteArrayView_qsizetype_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(a), from); } @QtUninvokable private native long indexOf_native_QByteArrayView_qsizetype_constfct(long __this__nativeId, long a, long from); /** *

See QByteArrayView::indexOf(char,qsizetype)const

*/ @QtUninvokable public final long indexOf(byte ch, long from){ return indexOf_native_char_qsizetype_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), ch, from); } @QtUninvokable private native long indexOf_native_char_qsizetype_constfct(long __this__nativeId, byte ch, long from); /** *

See QByteArrayView::isEmpty()const

*/ @QtUninvokable public final boolean isEmpty(){ return isEmpty_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native boolean isEmpty_native_constfct(long __this__nativeId); /** *

See QByteArrayView::isNull()const

*/ @QtUninvokable public final boolean isNull(){ return isNull_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native boolean isNull_native_constfct(long __this__nativeId); /** *

See QByteArrayView::isValidUtf8()const

*/ @QtUninvokable public final boolean isValidUtf8(){ return isValidUtf8_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native boolean isValidUtf8_native_constfct(long __this__nativeId); /** *

See QByteArrayView::last()const

*/ @QtUninvokable public final byte last(){ return last_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native byte last_native_constfct(long __this__nativeId); /** *

See QByteArrayView::last(qsizetype)const

*/ @QtUninvokable public final io.qt.core.@NonNull QByteArrayView last(long n){ return last_native_qsizetype_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), n); } @QtUninvokable private native io.qt.core.QByteArrayView last_native_qsizetype_constfct(long __this__nativeId, long n); /** *

See QByteArrayView::lastIndexOf(QByteArrayView)const

*/ @QtUninvokable public final long lastIndexOf(io.qt.core.@NonNull QByteArrayView a){ return lastIndexOf_native_QByteArrayView_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(a)); } @QtUninvokable private native long lastIndexOf_native_QByteArrayView_constfct(long __this__nativeId, long a); /** *

See QByteArrayView::lastIndexOf(QByteArrayView,qsizetype)const

*/ @QtUninvokable public final long lastIndexOf(io.qt.core.@NonNull QByteArrayView a, long from){ return lastIndexOf_native_QByteArrayView_qsizetype_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(a), from); } @QtUninvokable private native long lastIndexOf_native_QByteArrayView_qsizetype_constfct(long __this__nativeId, long a, long from); /** *

See QByteArrayView::lastIndexOf(char,qsizetype)const

*/ @QtUninvokable public final long lastIndexOf(byte ch, long from){ return lastIndexOf_native_char_qsizetype_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), ch, from); } @QtUninvokable private native long lastIndexOf_native_char_qsizetype_constfct(long __this__nativeId, byte ch, long from); /** *

See QByteArrayView::left(qsizetype)const

*/ @QtUninvokable public final io.qt.core.@NonNull QByteArrayView left(long n){ return left_native_qsizetype_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), n); } @QtUninvokable private native io.qt.core.QByteArrayView left_native_qsizetype_constfct(long __this__nativeId, long n); /** *

See QByteArrayView::length()const

*/ @QtUninvokable public final long length(){ return length_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native long length_native_constfct(long __this__nativeId); /** *

See QByteArrayView::mid(qsizetype,qsizetype)const

*/ @QtUninvokable public final io.qt.core.@NonNull QByteArrayView mid(long pos, long n){ return mid_native_qsizetype_qsizetype_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), pos, n); } @QtUninvokable private native io.qt.core.QByteArrayView mid_native_qsizetype_qsizetype_constfct(long __this__nativeId, long pos, long n); /** *

See operator<(QByteArrayView,QByteArray)

*/ @QtUninvokable private final boolean operator_less(io.qt.core.@NonNull QByteArray arg__2){ return operator_less_native_QByteArray(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(arg__2)); } @QtUninvokable private native boolean operator_less_native_QByteArray(long __this__nativeId, long arg__2); /** *

See operator<(QByteArrayView,QByteArrayView)

*/ @QtUninvokable private final boolean operator_less(io.qt.core.@NonNull QByteArrayView rhs){ return operator_less_native_QByteArrayView(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(rhs)); } @QtUninvokable private native boolean operator_less_native_QByteArrayView(long __this__nativeId, long rhs); /** *

See operator==(QByteArrayView,QByteArray)

*/ @QtUninvokable public final boolean equals(io.qt.core.@NonNull QByteArray arg__2){ return equals_native_QByteArray(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(arg__2)); } @QtUninvokable private native boolean equals_native_QByteArray(long __this__nativeId, long arg__2); /** *

See operator==(QByteArrayView,QByteArrayView)

*/ @QtUninvokable public final boolean equals(io.qt.core.@NonNull QByteArrayView rhs){ return equals_native_QByteArrayView(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(rhs)); } @QtUninvokable private native boolean equals_native_QByteArrayView(long __this__nativeId, long rhs); /** *

See QByteArrayView::operator[](qsizetype)const

*/ @QtUninvokable public final byte get(long n){ if(n<0 || n>size()) throw new IndexOutOfBoundsException(""+n); return get_native_qsizetype_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), n); } @QtUninvokable private native byte get_native_qsizetype_constfct(long __this__nativeId, long n); /** *

See QByteArrayView::right(qsizetype)const

*/ @QtUninvokable public final io.qt.core.@NonNull QByteArrayView right(long n){ return right_native_qsizetype_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), n); } @QtUninvokable private native io.qt.core.QByteArrayView right_native_qsizetype_constfct(long __this__nativeId, long n); /** *

See QByteArrayView::size()const

*/ @QtUninvokable public final long size(){ return size_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native long size_native_constfct(long __this__nativeId); /** *

See QByteArrayView::sliced(qsizetype)const

*/ @QtUninvokable public final io.qt.core.@NonNull QByteArrayView sliced(long pos){ return sliced_native_qsizetype_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), pos); } @QtUninvokable private native io.qt.core.QByteArrayView sliced_native_qsizetype_constfct(long __this__nativeId, long pos); /** *

See QByteArrayView::sliced(qsizetype,qsizetype)const

*/ @QtUninvokable public final io.qt.core.@NonNull QByteArrayView sliced(long pos, long n){ return sliced_native_qsizetype_qsizetype_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), pos, n); } @QtUninvokable private native io.qt.core.QByteArrayView sliced_native_qsizetype_qsizetype_constfct(long __this__nativeId, long pos, long n); /** *

See QByteArrayView::startsWith(QByteArrayView)const

*/ @QtUninvokable public final boolean startsWith(io.qt.core.@NonNull QByteArrayView other){ return startsWith_native_QByteArrayView_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(other)); } @QtUninvokable private native boolean startsWith_native_QByteArrayView_constfct(long __this__nativeId, long other); /** *

See QByteArrayView::startsWith(char)const

*/ @QtUninvokable public final boolean startsWith(byte c){ return startsWith_native_char_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), c); } @QtUninvokable private native boolean startsWith_native_char_constfct(long __this__nativeId, byte c); /** *

See QByteArrayView::toByteArray()const

*/ @QtUninvokable public final io.qt.core.@NonNull QByteArray toByteArray(){ return toByteArray_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native io.qt.core.QByteArray toByteArray_native_constfct(long __this__nativeId); /** *

See QByteArrayView::toDouble(bool*)const

*/ @QtUninvokable public final double toDouble() throws NumberFormatException{ return toDouble_native_bool_ptr_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native double toDouble_native_bool_ptr_constfct(long __this__nativeId) throws NumberFormatException ; /** *

See QByteArrayView::toFloat(bool*)const

*/ @QtUninvokable public final float toFloat() throws NumberFormatException{ return toFloat_native_bool_ptr_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native float toFloat_native_bool_ptr_constfct(long __this__nativeId) throws NumberFormatException ; /** *

See QByteArrayView::toInt(bool*,int)const

*/ @QtUninvokable public final int toInt(int base) throws NumberFormatException{ return toInt_native_bool_ptr_int_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), base); } @QtUninvokable private native int toInt_native_bool_ptr_int_constfct(long __this__nativeId, int base) throws NumberFormatException ; /** *

See QByteArrayView::toShort(bool*,int)const

*/ @QtUninvokable public final short toShort(int base) throws NumberFormatException{ return toShort_native_bool_ptr_int_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), base); } @QtUninvokable private native short toShort_native_bool_ptr_int_constfct(long __this__nativeId, int base) throws NumberFormatException ; /** *

See QByteArrayView::trimmed()const

*/ @QtUninvokable public final io.qt.core.@NonNull QByteArrayView trimmed(){ return trimmed_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native io.qt.core.QByteArrayView trimmed_native_constfct(long __this__nativeId); /** *

See QByteArrayView::truncate(qsizetype)

*/ @QtUninvokable public final void truncate(long n){ truncate_native_qsizetype(QtJambi_LibraryUtilities.internal.nativeId(this), n); } @QtUninvokable private native void truncate_native_qsizetype(long __this__nativeId, long n); /** *

See qChecksum(QByteArrayView,Qt::ChecksumType)

*/ public static short qChecksum(io.qt.core.@NonNull QByteArrayView data, io.qt.core.Qt.@NonNull ChecksumType standard){ return qChecksum_native_QByteArrayView_Qt_ChecksumType(QtJambi_LibraryUtilities.internal.checkedNativeId(data), standard.value()); } private native static short qChecksum_native_QByteArrayView_Qt_ChecksumType(long data, int standard); /** * Returns an iterator for this iterable object. * @see #begin() * @see #end() */ @Override public java.util.@NonNull Iterator iterator() { return begin().iterator(); } /** * Constructor for internal use only. * @param p expected to be null. * @hidden */ @NativeAccess protected QByteArrayView(QPrivateConstructor p) { super(p); } /** *

Checks for equality depending on the type of given object.

*/ @Override @QtUninvokable public boolean equals(Object other) { if (other instanceof byte[]) { other = new io.qt.core.QByteArrayView((byte[]) other); }else if (other instanceof java.nio.ByteBuffer) { other = new io.qt.core.QByteArrayView((java.nio.ByteBuffer) other); }else if (other instanceof String) { other = new io.qt.core.QByteArrayView((String) other); } if (other instanceof io.qt.core.QByteArrayView) { return equals((io.qt.core.QByteArrayView) other); } if (other instanceof io.qt.core.QByteArray) { return equals((io.qt.core.QByteArray) other); } if (other instanceof java.nio.ByteBuffer) { return equals((java.nio.ByteBuffer) other); } if (other instanceof byte[]) { return equals((byte[]) other); } else if (other instanceof io.qt.core.QByteArray) { return equals((io.qt.core.QByteArray) other); } return false; } /** *

Compares to other object depending on its type.

*/ /** * {@inheritDoc} */ @QtUninvokable public int compareTo(@StrictNonNull Object other) { if (other instanceof byte[]) { other = new io.qt.core.QByteArrayView((byte[]) other); }else if (other instanceof java.nio.ByteBuffer) { other = new io.qt.core.QByteArrayView((java.nio.ByteBuffer) other); }else if (other instanceof String) { other = new io.qt.core.QByteArrayView((String) other); } if (equals(other)) return 0; else if (other instanceof io.qt.core.QByteArrayView) { if (operator_less((io.qt.core.QByteArrayView) other)) return -1; else return 1; } if (other instanceof io.qt.core.QByteArray) { if (operator_less((io.qt.core.QByteArray) other)) return -1; else return 1; } if (other instanceof java.nio.ByteBuffer) { if (operator_less((java.nio.ByteBuffer) other)) return -1; else return 1; } if (other instanceof byte[]) { if (operator_less((byte[]) other)) return -1; else return 1; } else if (other instanceof io.qt.core.QByteArray) { if (operator_less((io.qt.core.QByteArray) other)) return -1; else return 1; } else if(other==null) if (operator_less((io.qt.core.QByteArrayView) other)) return -1; else return 1; else throw new ClassCastException(); } /** * Returns the objects's hash code computed by qHash(QByteArrayView). */ @QtUninvokable @Override public int hashCode() { return hashCode_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native static int hashCode_native(long __this_nativeId); /** *

See QByteArrayView::fromArray<Byte,Size>(const Byte(&)[Size])

*/ public static @NonNull QByteArrayView fromArray(byte @NonNull[] data){ return new QByteArrayView(data); } /** *

See QByteArrayView::fromArray<Byte,Size>(const Byte(&)[Size])

*/ public static @NonNull QByteArrayView fromArray(byte @NonNull[] data, int offset, int length){ return new QByteArrayView(data, offset, length); } /** *

See QByteArrayView::QByteArrayView(const char*)

*/ public QByteArrayView(byte @NonNull[] data){ this(data, 0, -1); } /** *

See QByteArrayView::QByteArrayView(const char*, qsizetype)

*/ public QByteArrayView(byte @NonNull[] data, int offset, int length){ super((QPrivateConstructor)null); Long[] pointerOut = {null}; if(offset+length>data.length) length = data.length-offset; initialize_native(this, data, offset, length, pointerOut); if(pointerOut[0]!=null) { long pointer = pointerOut[0]; purgeTask = ()->purgeBytes(pointer); QtUtilities.getSignalOnDispose(this).connect(purgeTask::run); } } private native static void initialize_native(QByteArrayView instance, byte[] data, int offset, int length, Long[] pointerOut); private native static void purgeBytes(long pointer); /** *

See QByteArrayView::QByteArrayView(const char*)

*/ public QByteArrayView(@NonNull String data){ super((QPrivateConstructor)null); Long[] pointerOut = {null}; initialize_native(this, data, pointerOut); if(pointerOut[0]!=null) { long pointer = pointerOut[0]; purgeTask = ()->purgeString(pointer); QtUtilities.getSignalOnDispose(this).connect(purgeTask::run); } } private native static void initialize_native(QByteArrayView instance, String data, Long[] pointerOut); private native static void purgeString(long pointer); /** *

See QByteArrayView::QByteArrayView(const char*, qsizetype)

*/ public QByteArrayView(java.nio.@NonNull ByteBuffer data){ super((QPrivateConstructor)null); if(data.isDirect()) { initialize_native(this, data, data.position(), data.limit()-data.position()); purgeTask = data::hashCode; QtUtilities.getSignalOnDispose(this).connect(purgeTask::run); }else { Long[] pointerOut = {null}; initialize_native(this, data, pointerOut); if(pointerOut[0]!=null) { long pointer = pointerOut[0]; purgeTask = ()->purgeBuffer(pointer); QtUtilities.getSignalOnDispose(this).connect(purgeTask::run); } } } private native static void initialize_native(QByteArrayView instance, java.nio.ByteBuffer data, int offset, int length); private native static void initialize_native(QByteArrayView instance, java.nio.ByteBuffer data, Long[] pointerOut); private native static void purgeBuffer(long pointer); /** *

See QByteArrayView::QByteArrayView(QByteArray)

*/ public QByteArrayView(@NonNull QByteArray data){ super((QPrivateConstructor)null); if(data!=null) { initialize_native(this, data); purgeTask = data::isDisposed; QtUtilities.getSignalOnDispose(this).connect(purgeTask::run); }else { initialize_native(this); } } private native static void initialize_native(QByteArrayView instance, QByteArray data); private Runnable purgeTask; /** *

See operator<<(QDebug,QByteArrayView)

*/ @QtUninvokable @Override public @NonNull String toString() { return toString_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private static native String toString_native(long __this_nativeId); /** *

Creates and returns a copy of this object.

See QByteArrayView::QByteArrayView(QByteArrayView)

*/ @QtUninvokable @Override public QByteArrayView clone() { return clone_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } private static native QByteArrayView clone_native(long __this_nativeId); /** *

Overloaded function for {@link #compare(io.qt.core.QByteArrayView, io.qt.core.Qt.CaseSensitivity)} * with cs = io.qt.core.Qt.CaseSensitivity.CaseSensitive.

*/ @QtUninvokable public final int compare(io.qt.core.@NonNull QByteArrayView a) { return compare(a, io.qt.core.Qt.CaseSensitivity.CaseSensitive); } /** *

Overloaded function for {@link #compare(io.qt.core.QByteArray, io.qt.core.Qt.CaseSensitivity)} * with cs = io.qt.core.Qt.CaseSensitivity.CaseSensitive.

*/ @QtUninvokable public final int compare(io.qt.core.@NonNull QByteArray a) { return compare(a, io.qt.core.Qt.CaseSensitivity.CaseSensitive); } /** *

Overloaded function for {@link #compare(io.qt.core.QByteArrayView, io.qt.core.Qt.CaseSensitivity)}.

*/ @QtUninvokable public final int compare(io.qt.core.@NonNull QByteArray a, io.qt.core.Qt.@NonNull CaseSensitivity cs) { return compare(new io.qt.core.QByteArrayView(a), cs); } /** *

Overloaded function for {@link #compare(java.nio.ByteBuffer, io.qt.core.Qt.CaseSensitivity)} * with cs = io.qt.core.Qt.CaseSensitivity.CaseSensitive.

*/ @QtUninvokable public final int compare(java.nio.@NonNull ByteBuffer a) { return compare(a, io.qt.core.Qt.CaseSensitivity.CaseSensitive); } /** *

Overloaded function for {@link #compare(io.qt.core.QByteArrayView, io.qt.core.Qt.CaseSensitivity)}.

*/ @QtUninvokable public final int compare(java.nio.@NonNull ByteBuffer a, io.qt.core.Qt.@NonNull CaseSensitivity cs) { return compare(new io.qt.core.QByteArrayView(a), cs); } /** *

Overloaded function for {@link #compare(byte[], io.qt.core.Qt.CaseSensitivity)} * with cs = io.qt.core.Qt.CaseSensitivity.CaseSensitive.

*/ @QtUninvokable public final int compare(byte @NonNull[] a) { return compare(a, io.qt.core.Qt.CaseSensitivity.CaseSensitive); } /** *

Overloaded function for {@link #compare(io.qt.core.QByteArrayView, io.qt.core.Qt.CaseSensitivity)}.

*/ @QtUninvokable public final int compare(byte @NonNull[] a, io.qt.core.Qt.@NonNull CaseSensitivity cs) { return compare(new io.qt.core.QByteArrayView(a), cs); } /** *

Overloaded function for {@link #compare(java.lang.String, io.qt.core.Qt.CaseSensitivity)} * with cs = io.qt.core.Qt.CaseSensitivity.CaseSensitive.

*/ @QtUninvokable public final int compare(java.lang.@NonNull String a) { return compare(a, io.qt.core.Qt.CaseSensitivity.CaseSensitive); } /** *

Overloaded function for {@link #compare(io.qt.core.QByteArrayView, io.qt.core.Qt.CaseSensitivity)}.

*/ @QtUninvokable public final int compare(java.lang.@NonNull String a, io.qt.core.Qt.@NonNull CaseSensitivity cs) { return compare(new io.qt.core.QByteArrayView(a), cs); } /** *

Overloaded function for {@link #contains(io.qt.core.QByteArrayView)}.

*/ @QtUninvokable public final boolean contains(io.qt.core.@NonNull QByteArray a) { return contains(new io.qt.core.QByteArrayView(a)); } /** *

Overloaded function for {@link #contains(io.qt.core.QByteArrayView)}.

*/ @QtUninvokable public final boolean contains(java.nio.@NonNull ByteBuffer a) { return contains(new io.qt.core.QByteArrayView(a)); } /** *

Overloaded function for {@link #contains(io.qt.core.QByteArrayView)}.

*/ @QtUninvokable public final boolean contains(byte @NonNull[] a) { return contains(new io.qt.core.QByteArrayView(a)); } /** *

Overloaded function for {@link #count(io.qt.core.QByteArrayView)}.

*/ @QtUninvokable public final long count(io.qt.core.@NonNull QByteArray a) { return count(new io.qt.core.QByteArrayView(a)); } /** *

Overloaded function for {@link #count(io.qt.core.QByteArrayView)}.

*/ @QtUninvokable public final long count(java.nio.@NonNull ByteBuffer a) { return count(new io.qt.core.QByteArrayView(a)); } /** *

Overloaded function for {@link #count(io.qt.core.QByteArrayView)}.

*/ @QtUninvokable public final long count(byte @NonNull[] a) { return count(new io.qt.core.QByteArrayView(a)); } /** *

Overloaded function for {@link #count(io.qt.core.QByteArrayView)}.

*/ @QtUninvokable public final long count(java.lang.@NonNull String a) { return count(new io.qt.core.QByteArrayView(a)); } /** *

Overloaded function for {@link #endsWith(io.qt.core.QByteArrayView)}.

*/ @QtUninvokable public final boolean endsWith(io.qt.core.@NonNull QByteArray other) { return endsWith(new io.qt.core.QByteArrayView(other)); } /** *

Overloaded function for {@link #endsWith(io.qt.core.QByteArrayView)}.

*/ @QtUninvokable public final boolean endsWith(java.nio.@NonNull ByteBuffer other) { return endsWith(new io.qt.core.QByteArrayView(other)); } /** *

Overloaded function for {@link #endsWith(io.qt.core.QByteArrayView)}.

*/ @QtUninvokable public final boolean endsWith(byte @NonNull[] other) { return endsWith(new io.qt.core.QByteArrayView(other)); } /** *

Overloaded function for {@link #endsWith(io.qt.core.QByteArrayView)}.

*/ @QtUninvokable public final boolean endsWith(java.lang.@NonNull String other) { return endsWith(new io.qt.core.QByteArrayView(other)); } /** *

Overloaded function for {@link #indexOf(io.qt.core.QByteArrayView, long)} * with from = 0.

*/ @QtUninvokable public final long indexOf(io.qt.core.@NonNull QByteArrayView a) { return indexOf(a, (long)0); } /** *

Overloaded function for {@link #indexOf(io.qt.core.QByteArray, long)} * with from = 0.

*/ @QtUninvokable public final long indexOf(io.qt.core.@NonNull QByteArray a) { return indexOf(a, (long)0); } /** *

Overloaded function for {@link #indexOf(io.qt.core.QByteArrayView, long)}.

*/ @QtUninvokable public final long indexOf(io.qt.core.@NonNull QByteArray a, long from) { return indexOf(new io.qt.core.QByteArrayView(a), from); } /** *

Overloaded function for {@link #indexOf(java.nio.ByteBuffer, long)} * with from = 0.

*/ @QtUninvokable public final long indexOf(java.nio.@NonNull ByteBuffer a) { return indexOf(a, (long)0); } /** *

Overloaded function for {@link #indexOf(io.qt.core.QByteArrayView, long)}.

*/ @QtUninvokable public final long indexOf(java.nio.@NonNull ByteBuffer a, long from) { return indexOf(new io.qt.core.QByteArrayView(a), from); } /** *

Overloaded function for {@link #indexOf(byte[], long)} * with from = 0.

*/ @QtUninvokable public final long indexOf(byte @NonNull[] a) { return indexOf(a, (long)0); } /** *

Overloaded function for {@link #indexOf(io.qt.core.QByteArrayView, long)}.

*/ @QtUninvokable public final long indexOf(byte @NonNull[] a, long from) { return indexOf(new io.qt.core.QByteArrayView(a), from); } /** *

Overloaded function for {@link #indexOf(java.lang.String, long)} * with from = 0.

*/ @QtUninvokable public final long indexOf(java.lang.@NonNull String a) { return indexOf(a, (long)0); } /** *

Overloaded function for {@link #indexOf(io.qt.core.QByteArrayView, long)}.

*/ @QtUninvokable public final long indexOf(java.lang.@NonNull String a, long from) { return indexOf(new io.qt.core.QByteArrayView(a), from); } /** *

Overloaded function for {@link #indexOf(byte, long)} * with from = 0.

*/ @QtUninvokable public final long indexOf(byte ch) { return indexOf(ch, (long)0); } /** *

Overloaded function for {@link #lastIndexOf(io.qt.core.QByteArrayView)}.

*/ @QtUninvokable public final long lastIndexOf(io.qt.core.@NonNull QByteArray a) { return lastIndexOf(new io.qt.core.QByteArrayView(a)); } /** *

Overloaded function for {@link #lastIndexOf(io.qt.core.QByteArrayView)}.

*/ @QtUninvokable public final long lastIndexOf(java.nio.@NonNull ByteBuffer a) { return lastIndexOf(new io.qt.core.QByteArrayView(a)); } /** *

Overloaded function for {@link #lastIndexOf(io.qt.core.QByteArrayView)}.

*/ @QtUninvokable public final long lastIndexOf(byte @NonNull[] a) { return lastIndexOf(new io.qt.core.QByteArrayView(a)); } /** *

Overloaded function for {@link #lastIndexOf(io.qt.core.QByteArrayView)}.

*/ @QtUninvokable public final long lastIndexOf(java.lang.@NonNull String a) { return lastIndexOf(new io.qt.core.QByteArrayView(a)); } /** *

Overloaded function for {@link #lastIndexOf(io.qt.core.QByteArrayView, long)}.

*/ @QtUninvokable public final long lastIndexOf(io.qt.core.@NonNull QByteArray a, long from) { return lastIndexOf(new io.qt.core.QByteArrayView(a), from); } /** *

Overloaded function for {@link #lastIndexOf(io.qt.core.QByteArrayView, long)}.

*/ @QtUninvokable public final long lastIndexOf(java.nio.@NonNull ByteBuffer a, long from) { return lastIndexOf(new io.qt.core.QByteArrayView(a), from); } /** *

Overloaded function for {@link #lastIndexOf(io.qt.core.QByteArrayView, long)}.

*/ @QtUninvokable public final long lastIndexOf(byte @NonNull[] a, long from) { return lastIndexOf(new io.qt.core.QByteArrayView(a), from); } /** *

Overloaded function for {@link #lastIndexOf(io.qt.core.QByteArrayView, long)}.

*/ @QtUninvokable public final long lastIndexOf(java.lang.@NonNull String a, long from) { return lastIndexOf(new io.qt.core.QByteArrayView(a), from); } /** *

Overloaded function for {@link #lastIndexOf(byte, long)} * with from = -1.

*/ @QtUninvokable public final long lastIndexOf(byte ch) { return lastIndexOf(ch, (long)-1); } /** *

Overloaded function for {@link #mid(long, long)} * with n = -1.

*/ @QtUninvokable public final io.qt.core.@NonNull QByteArrayView mid(long pos) { return mid(pos, (long)-1); } /** *

Overloaded function for {@link #operator_less(io.qt.core.QByteArrayView)}.

*/ @QtUninvokable private final boolean operator_less(java.nio.@NonNull ByteBuffer rhs) { return operator_less(new io.qt.core.QByteArrayView(rhs)); } /** *

Overloaded function for {@link #operator_less(io.qt.core.QByteArrayView)}.

*/ @QtUninvokable private final boolean operator_less(byte @NonNull[] rhs) { return operator_less(new io.qt.core.QByteArrayView(rhs)); } /** *

Overloaded function for {@link #equals(io.qt.core.QByteArrayView)}.

*/ @QtUninvokable public final boolean equals(java.nio.@NonNull ByteBuffer rhs) { return equals(new io.qt.core.QByteArrayView(rhs)); } /** *

Overloaded function for {@link #equals(io.qt.core.QByteArrayView)}.

*/ @QtUninvokable public final boolean equals(byte @NonNull[] rhs) { return equals(new io.qt.core.QByteArrayView(rhs)); } /** *

Overloaded function for {@link #startsWith(io.qt.core.QByteArrayView)}.

*/ @QtUninvokable public final boolean startsWith(io.qt.core.@NonNull QByteArray other) { return startsWith(new io.qt.core.QByteArrayView(other)); } /** *

Overloaded function for {@link #startsWith(io.qt.core.QByteArrayView)}.

*/ @QtUninvokable public final boolean startsWith(java.nio.@NonNull ByteBuffer other) { return startsWith(new io.qt.core.QByteArrayView(other)); } /** *

Overloaded function for {@link #startsWith(io.qt.core.QByteArrayView)}.

*/ @QtUninvokable public final boolean startsWith(byte @NonNull[] other) { return startsWith(new io.qt.core.QByteArrayView(other)); } /** *

Overloaded function for {@link #startsWith(io.qt.core.QByteArrayView)}.

*/ @QtUninvokable public final boolean startsWith(java.lang.@NonNull String other) { return startsWith(new io.qt.core.QByteArrayView(other)); } /** *

Overloaded function for {@link #toInt(int)} * with base = 10.

*/ @QtUninvokable public final int toInt() throws NumberFormatException { return toInt((int)10); } /** *

Overloaded function for {@link #toShort(int)} * with base = 10.

*/ @QtUninvokable public final short toShort() throws NumberFormatException { return toShort((int)10); } /** *

Overloaded function for {@link #qChecksum(io.qt.core.QByteArrayView, io.qt.core.Qt.ChecksumType)} * with standard = io.qt.core.Qt.ChecksumType.ChecksumIso3309.

*/ public static short qChecksum(io.qt.core.@NonNull QByteArrayView data) { return qChecksum(data, io.qt.core.Qt.ChecksumType.ChecksumIso3309); } /** *

Overloaded function for {@link #qChecksum(io.qt.core.QByteArray, io.qt.core.Qt.ChecksumType)} * with standard = io.qt.core.Qt.ChecksumType.ChecksumIso3309.

*/ public static short qChecksum(io.qt.core.@NonNull QByteArray data) { return qChecksum(data, io.qt.core.Qt.ChecksumType.ChecksumIso3309); } /** *

Overloaded function for {@link #qChecksum(io.qt.core.QByteArrayView, io.qt.core.Qt.ChecksumType)}.

*/ public static short qChecksum(io.qt.core.@NonNull QByteArray data, io.qt.core.Qt.@NonNull ChecksumType standard) { return qChecksum(new io.qt.core.QByteArrayView(data), standard); } /** *

Overloaded function for {@link #qChecksum(java.nio.ByteBuffer, io.qt.core.Qt.ChecksumType)} * with standard = io.qt.core.Qt.ChecksumType.ChecksumIso3309.

*/ public static short qChecksum(java.nio.@NonNull ByteBuffer data) { return qChecksum(data, io.qt.core.Qt.ChecksumType.ChecksumIso3309); } /** *

Overloaded function for {@link #qChecksum(io.qt.core.QByteArrayView, io.qt.core.Qt.ChecksumType)}.

*/ public static short qChecksum(java.nio.@NonNull ByteBuffer data, io.qt.core.Qt.@NonNull ChecksumType standard) { return qChecksum(new io.qt.core.QByteArrayView(data), standard); } /** *

Overloaded function for {@link #qChecksum(byte[], io.qt.core.Qt.ChecksumType)} * with standard = io.qt.core.Qt.ChecksumType.ChecksumIso3309.

*/ public static short qChecksum(byte @NonNull[] data) { return qChecksum(data, io.qt.core.Qt.ChecksumType.ChecksumIso3309); } /** *

Overloaded function for {@link #qChecksum(io.qt.core.QByteArrayView, io.qt.core.Qt.ChecksumType)}.

*/ public static short qChecksum(byte @NonNull[] data, io.qt.core.Qt.@NonNull ChecksumType standard) { return qChecksum(new io.qt.core.QByteArrayView(data), standard); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy