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

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

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

import io.qt.*;


/**
 * 

Serialization of binary data to a QIODevice

*

Java wrapper for Qt class QDataStream

*/ public class QDataStream extends QtObject implements io.qt.core.QIODeviceBase { static { QtJambi_LibraryUtilities.initialize(); } @QtPropertyMember(enabled=false) private Object __rcDevice = null; /** *

Java wrapper for Qt enum QDataStream::ByteOrder

*/ public enum ByteOrder implements QtEnumerator { /** *

Representing QDataStream::BigEndian

*/ BigEndian(0), /** *

Representing QDataStream::LittleEndian

*/ LittleEndian(1); static { QtJambi_LibraryUtilities.initialize(); } private ByteOrder(int value) { this.value = value; } /** * {@inheritDoc} */ @Override public int value() { return value; } /** * Returns the corresponding enum entry for the given value. * @param value * @return enum entry */ public static @NonNull ByteOrder resolve(int value) { switch (value) { case 0: return BigEndian; case 1: return LittleEndian; default: throw new QNoSuchEnumValueException(value); } } private final int value; } /** *

Java wrapper for Qt enum QDataStream::FloatingPointPrecision

*/ public enum FloatingPointPrecision implements QtEnumerator { /** *

Representing QDataStream::SinglePrecision

*/ SinglePrecision(0), /** *

Representing QDataStream::DoublePrecision

*/ DoublePrecision(1); static { QtJambi_LibraryUtilities.initialize(); } private FloatingPointPrecision(int value) { this.value = value; } /** * {@inheritDoc} */ @Override public int value() { return value; } /** * Returns the corresponding enum entry for the given value. * @param value * @return enum entry */ public static @NonNull FloatingPointPrecision resolve(int value) { switch (value) { case 0: return SinglePrecision; case 1: return DoublePrecision; default: throw new QNoSuchEnumValueException(value); } } private final int value; } /** *

Java wrapper for Qt enum QDataStream::Status

*/ public enum Status implements QtEnumerator { /** *

Representing QDataStream::Ok

*/ Ok(0), /** *

Representing QDataStream::ReadPastEnd

*/ ReadPastEnd(1), /** *

Representing QDataStream::ReadCorruptData

*/ ReadCorruptData(2), /** *

Representing QDataStream::WriteFailed

*/ WriteFailed(3), /** *

Representing QDataStream::SizeLimitExceeded

*/ SizeLimitExceeded(4); static { QtJambi_LibraryUtilities.initialize(); } private Status(int value) { this.value = value; } /** * {@inheritDoc} */ @Override public int value() { return value; } /** * Returns the corresponding enum entry for the given value. * @param value * @return enum entry */ public static @NonNull Status resolve(int value) { switch (value) { case 0: return Ok; case 1: return ReadPastEnd; case 2: return ReadCorruptData; case 3: return WriteFailed; case 4: return SizeLimitExceeded; default: throw new QNoSuchEnumValueException(value); } } private final int value; } /** *

Java wrapper for Qt enum QDataStream::Version

*/ @QtRejectedEntries({"Qt_4_1", "Qt_4_7", "Qt_4_8", "Qt_4_9", "Qt_5_3", "Qt_5_5", "Qt_5_7", "Qt_5_8", "Qt_5_9", "Qt_5_10", "Qt_5_11", "Qt_5_14", "Qt_5_15", "Qt_6_1", "Qt_6_2", "Qt_6_3", "Qt_6_4", "Qt_6_5", "Qt_DefaultCompiledVersion"}) public enum Version implements QtEnumerator { /** *

Representing QDataStream::Qt_1_0

*/ Qt_1_0(1), /** *

Representing QDataStream::Qt_2_0

*/ Qt_2_0(2), /** *

Representing QDataStream::Qt_2_1

*/ Qt_2_1(3), /** *

Representing QDataStream::Qt_3_0

*/ Qt_3_0(4), /** *

Representing QDataStream::Qt_3_1

*/ Qt_3_1(5), /** *

Representing QDataStream::Qt_3_3

*/ Qt_3_3(6), /** *

Representing QDataStream::Qt_4_0

*/ Qt_4_0(7), /** *

Representing QDataStream::Qt_4_1

*/ Qt_4_1(7), /** *

Representing QDataStream::Qt_4_2

*/ Qt_4_2(8), /** *

Representing QDataStream::Qt_4_3

*/ Qt_4_3(9), /** *

Representing QDataStream::Qt_4_4

*/ Qt_4_4(10), /** *

Representing QDataStream::Qt_4_5

*/ Qt_4_5(11), /** *

Representing QDataStream::Qt_4_6

*/ Qt_4_6(12), /** *

Representing QDataStream::Qt_4_7

*/ Qt_4_7(12), /** *

Representing QDataStream::Qt_4_8

*/ Qt_4_8(12), /** *

Representing QDataStream::Qt_4_9

*/ Qt_4_9(12), /** *

Representing QDataStream::Qt_5_0

*/ Qt_5_0(13), /** *

Representing QDataStream::Qt_5_1

*/ Qt_5_1(14), /** *

Representing QDataStream::Qt_5_2

*/ Qt_5_2(15), /** *

Representing QDataStream::Qt_5_3

*/ Qt_5_3(15), /** *

Representing QDataStream::Qt_5_4

*/ Qt_5_4(16), /** *

Representing QDataStream::Qt_5_5

*/ Qt_5_5(16), /** *

Representing QDataStream::Qt_5_6

*/ Qt_5_6(17), /** *

Representing QDataStream::Qt_5_7

*/ Qt_5_7(17), /** *

Representing QDataStream::Qt_5_8

*/ Qt_5_8(17), /** *

Representing QDataStream::Qt_5_9

*/ Qt_5_9(17), /** *

Representing QDataStream::Qt_5_10

*/ Qt_5_10(17), /** *

Representing QDataStream::Qt_5_11

*/ Qt_5_11(17), /** *

Representing QDataStream::Qt_5_12

*/ Qt_5_12(18), /** *

Representing QDataStream::Qt_5_13

*/ Qt_5_13(19), /** *

Representing QDataStream::Qt_5_14

*/ Qt_5_14(19), /** *

Representing QDataStream::Qt_5_15

*/ Qt_5_15(19), /** *

Representing QDataStream::Qt_6_0

*/ Qt_6_0(20), /** *

Representing QDataStream::Qt_6_1

*/ Qt_6_1(20), /** *

Representing QDataStream::Qt_6_2

*/ Qt_6_2(20), /** *

Representing QDataStream::Qt_6_3

*/ Qt_6_3(20), /** *

Representing QDataStream::Qt_6_4

*/ Qt_6_4(20), /** *

Representing QDataStream::Qt_6_5

*/ Qt_6_5(20), /** *

Representing QDataStream::Qt_6_6

*/ Qt_6_6(21), /** *

Representing QDataStream::Qt_6_7

*/ Qt_6_7(22), /** *

Representing QDataStream::Qt_DefaultCompiledVersion

*/ Qt_DefaultCompiledVersion(22); static { QtJambi_LibraryUtilities.initialize(); } private Version(int value) { this.value = value; } /** * {@inheritDoc} */ @Override public int value() { return value; } /** * Returns the corresponding enum entry for the given value. * @param value * @return enum entry */ public static @NonNull Version resolve(int value) { switch (value) { case 1: return Qt_1_0; case 2: return Qt_2_0; case 3: return Qt_2_1; case 4: return Qt_3_0; case 5: return Qt_3_1; case 6: return Qt_3_3; case 7: return Qt_4_0; case 8: return Qt_4_2; case 9: return Qt_4_3; case 10: return Qt_4_4; case 11: return Qt_4_5; case 12: return Qt_4_6; case 13: return Qt_5_0; case 14: return Qt_5_1; case 15: return Qt_5_2; case 16: return Qt_5_4; case 17: return Qt_5_6; case 18: return Qt_5_12; case 19: return Qt_5_13; case 20: return Qt_6_0; case 21: return Qt_6_6; case 22: return Qt_6_7; default: throw new QNoSuchEnumValueException(value); } } private final int value; } /** *

See QDataStream::QDataStream()

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

See QDataStream::QDataStream(QByteArray)

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

See QDataStream::QDataStream(QByteArray*,QIODeviceBase::OpenMode)

*/ public QDataStream(io.qt.core.@Nullable QByteArray arg__1, io.qt.core.QIODeviceBase.@NonNull OpenMode flags){ super((QPrivateConstructor)null); initialize_native(this, arg__1, flags); __rcDevice = arg__1; } private native static void initialize_native(QDataStream instance, io.qt.core.QByteArray arg__1, io.qt.core.QIODeviceBase.OpenMode flags); /** *

See QDataStream::QDataStream(QIODevice*)

*/ public QDataStream(io.qt.core.@Nullable QIODevice arg__1){ super((QPrivateConstructor)null); initialize_native(this, arg__1); __rcDevice = arg__1; } private native static void initialize_native(QDataStream instance, io.qt.core.QIODevice arg__1); /** *

See QDataStream::abortTransaction()

*/ @QtUninvokable public final void abortTransaction(){ abortTransaction_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native void abortTransaction_native(long __this__nativeId); /** *

See QDataStream::atEnd()const

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

See QDataStream::byteOrder()const

*/ @QtUninvokable public final io.qt.core.QDataStream.@NonNull ByteOrder byteOrder(){ return io.qt.core.QDataStream.ByteOrder.resolve(byteOrder_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this))); } @QtUninvokable private native int byteOrder_native_constfct(long __this__nativeId); /** *

See QDataStream::commitTransaction()

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

See QDataStream::device()const

*/ @QtUninvokable public final io.qt.core.@Nullable QIODevice device(){ return device_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native io.qt.core.QIODevice device_native_constfct(long __this__nativeId); /** *

See QDataStream::floatingPointPrecision()const

*/ @QtUninvokable public final io.qt.core.QDataStream.@NonNull FloatingPointPrecision floatingPointPrecision(){ return io.qt.core.QDataStream.FloatingPointPrecision.resolve(floatingPointPrecision_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this))); } @QtUninvokable private native int floatingPointPrecision_native_constfct(long __this__nativeId); /** *

See QDataStream::isDeviceTransactionStarted()const

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

See QDataStream::operator<<(bool)

*/ @QtUninvokable public final @NonNull QDataStream append(boolean i){ return append_native_bool(QtJambi_LibraryUtilities.internal.nativeId(this), i); } @QtUninvokable private native QDataStream append_native_bool(long __this__nativeId, boolean i); /** *

See QDataStream::operator<<(const char*)

*/ @QtUninvokable public final @NonNull QDataStream append(java.lang.@Nullable String str){ return append_native_const_char_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), str); } @QtUninvokable private native QDataStream append_native_const_char_ptr(long __this__nativeId, java.lang.String str); /** *

See QDataStream::operator<<(double)

*/ @QtUninvokable public final @NonNull QDataStream append(double f){ return append_native_double(QtJambi_LibraryUtilities.internal.nativeId(this), f); } @QtUninvokable private native QDataStream append_native_double(long __this__nativeId, double f); /** *

See QDataStream::operator<<(float)

*/ @QtUninvokable public final @NonNull QDataStream append(float f){ return append_native_float(QtJambi_LibraryUtilities.internal.nativeId(this), f); } @QtUninvokable private native QDataStream append_native_float(long __this__nativeId, float f); /** *

See QDataStream::operator<<(qint16)

*/ @QtUninvokable public final @NonNull QDataStream append(short i){ return append_native_qint16(QtJambi_LibraryUtilities.internal.nativeId(this), i); } @QtUninvokable private native QDataStream append_native_qint16(long __this__nativeId, short i); /** *

See QDataStream::operator<<(qint32)

*/ @QtUninvokable public final @NonNull QDataStream append(int i){ return append_native_qint32(QtJambi_LibraryUtilities.internal.nativeId(this), i); } @QtUninvokable private native QDataStream append_native_qint32(long __this__nativeId, int i); /** *

See QDataStream::operator<<(qint64)

*/ @QtUninvokable public final @NonNull QDataStream append(long i){ return append_native_qint64(QtJambi_LibraryUtilities.internal.nativeId(this), i); } @QtUninvokable private native QDataStream append_native_qint64(long __this__nativeId, long i); /** *

See QDataStream::operator<<(qint8)

*/ @QtUninvokable public final @NonNull QDataStream append(byte i){ return append_native_qint8(QtJambi_LibraryUtilities.internal.nativeId(this), i); } @QtUninvokable private native QDataStream append_native_qint8(long __this__nativeId, byte i); /** *

See QDataStream::operator<<(quint16)

*/ @QtUninvokable public final @NonNull QDataStream append(char i){ return append_native_quint16(QtJambi_LibraryUtilities.internal.nativeId(this), i); } @QtUninvokable private native QDataStream append_native_quint16(long __this__nativeId, char i); /** *

See QDataStream::operator>>(bool&)

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

See QDataStream::operator>>(char*&)

*/ @QtUninvokable public final java.lang.@Nullable String readString(){ return readString_native_ref_char_ptr(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native java.lang.@Nullable String readString_native_ref_char_ptr(long __this__nativeId); /** *

See QDataStream::operator>>(double&)

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

See QDataStream::operator>>(float&)

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

See QDataStream::operator>>(qint16&)

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

See QDataStream::operator>>(qint32&)

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

See QDataStream::operator>>(qint64&)

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

See QDataStream::operator>>(qint8&)

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

See QDataStream::operator>>(quint16&)

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

See QDataStream::readRawData(char*,qint64)

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

See QDataStream::resetStatus()

*/ @QtUninvokable public final void resetStatus(){ resetStatus_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native void resetStatus_native(long __this__nativeId); /** *

See QDataStream::rollbackTransaction()

*/ @QtUninvokable public final void rollbackTransaction(){ rollbackTransaction_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native void rollbackTransaction_native(long __this__nativeId); /** *

See QDataStream::setByteOrder(QDataStream::ByteOrder)

*/ @QtUninvokable public final void setByteOrder(io.qt.core.QDataStream.@NonNull ByteOrder arg__1){ setByteOrder_native_QDataStream_ByteOrder(QtJambi_LibraryUtilities.internal.nativeId(this), arg__1.value()); } @QtUninvokable private native void setByteOrder_native_QDataStream_ByteOrder(long __this__nativeId, int arg__1); /** *

See QDataStream::setDevice(QIODevice*)

*/ @QtUninvokable public final void setDevice(io.qt.core.@Nullable QIODevice arg__1){ setDevice_native_QIODevice_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(arg__1)); __rcDevice = arg__1; } @QtUninvokable private native void setDevice_native_QIODevice_ptr(long __this__nativeId, long arg__1); /** *

See QDataStream::setFloatingPointPrecision(QDataStream::FloatingPointPrecision)

*/ @QtUninvokable public final void setFloatingPointPrecision(io.qt.core.QDataStream.@NonNull FloatingPointPrecision precision){ setFloatingPointPrecision_native_QDataStream_FloatingPointPrecision(QtJambi_LibraryUtilities.internal.nativeId(this), precision.value()); } @QtUninvokable private native void setFloatingPointPrecision_native_QDataStream_FloatingPointPrecision(long __this__nativeId, int precision); /** *

See QDataStream::setStatus(QDataStream::Status)

*/ @QtUninvokable public final void setStatus(io.qt.core.QDataStream.@NonNull Status status){ setStatus_native_QDataStream_Status(QtJambi_LibraryUtilities.internal.nativeId(this), status.value()); } @QtUninvokable private native void setStatus_native_QDataStream_Status(long __this__nativeId, int status); /** *

See QDataStream::setVersion(int)

*/ @QtUninvokable public final void setVersion(int arg__1){ setVersion_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), arg__1); } @QtUninvokable private native void setVersion_native_int(long __this__nativeId, int arg__1); /** *

See QDataStream::skipRawData(qint64)

*/ @QtUninvokable public final long skipRawData(long len){ return skipRawData_native_qint64(QtJambi_LibraryUtilities.internal.nativeId(this), len); } @QtUninvokable private native long skipRawData_native_qint64(long __this__nativeId, long len); /** *

See QDataStream::startTransaction()

*/ @QtUninvokable public final void startTransaction(){ startTransaction_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native void startTransaction_native(long __this__nativeId); /** *

See QDataStream::status()const

*/ @QtUninvokable public final io.qt.core.QDataStream.@NonNull Status status(){ return io.qt.core.QDataStream.Status.resolve(status_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this))); } @QtUninvokable private native int status_native_constfct(long __this__nativeId); /** *

See QDataStream::version()const

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

See QDataStream::writeRawData(const char*,qint64)

*/ @QtUninvokable public final long writeRawData(java.nio.@Nullable ByteBuffer arg__1){ return writeRawData_native_const_char_ptr_qint64(QtJambi_LibraryUtilities.internal.nativeId(this), arg__1); } @QtUninvokable private native long writeRawData_native_const_char_ptr_qint64(long __this__nativeId, java.nio.ByteBuffer arg__1); /** * Constructor for internal use only. * @param p expected to be null. * @hidden */ @NativeAccess protected QDataStream(QPrivateConstructor p) { super(p); } /** *

See QDataStream::operator<<

*/ @QtUninvokable public final @NonNull QDataStream writeObject(T t){ return append(t); } /** *

See QDataStream::operator<<

*/ @QtUninvokable public final @NonNull QDataStream writeString(java.lang.String s){ return append(s); } /** *

See QDataStream::operator<<

*/ @QtUninvokable public final @NonNull QDataStream writeDouble(double v){ return append(v); } /** *

See QDataStream::operator<<

*/ @QtUninvokable public final @NonNull QDataStream writeByte(byte v){ return append(v); } /** *

See QDataStream::operator<<

*/ @QtUninvokable public final @NonNull QDataStream append(byte[] v){ writeBytes(v); return this; } /** *

See QDataStream::operator<<

*/ @QtUninvokable public final @NonNull QDataStream writeChar(char v){ return append(v); } /** *

See QDataStream::operator<<

*/ @QtUninvokable public final @NonNull QDataStream writeFloat(float v){ return append(v); } /** *

See QDataStream::operator<<

*/ @QtUninvokable public final @NonNull QDataStream writeInt(int v){ return append(v); } /** *

See QDataStream::operator<<

*/ @QtUninvokable public final @NonNull QDataStream writeLong(long v){ return append(v); } /** *

See QDataStream::operator<<

*/ @QtUninvokable public final @NonNull QDataStream writeShort(short v){ return append(v); } /** *

See QDataStream::operator<<

*/ @QtUninvokable public final @NonNull QDataStream writeBoolean(boolean v){ return append(v); } /** *

See QDataStream::operator<<

*/ public final @NonNull QDataStream append(T object){ QMetaType metaType = QMetaType.fromObject(object); if(!metaType.save(this, object)){ this.setStatus(Status.WriteFailed); QLogging.qWarning("Unable to write object of type %1$s", object==null ? "null" : QtJambi_LibraryUtilities.internal.getClass(object).getTypeName()); } return this; } /** *

See QDataStream::operator>>

*/ @SuppressWarnings("unchecked") public final T readObject(Class cl, @NonNull QMetaType @NonNull...instantiations){ QMetaType metaType = QMetaType.fromType(cl, instantiations); java.util.Optional optional = metaType.load(this); if(!optional.isPresent()){ setStatus(Status.ReadCorruptData); QLogging.qWarning("Unable to read object of type %1$s", metaType.name()); } return (T)optional.orElse(null); } /** *

Overloaded constructor for {@link #QDataStream(io.qt.core.QByteArray)}.

*/ public QDataStream(byte @NonNull[] arg__1) { this(new io.qt.core.QByteArray(arg__1)); } /** *

Overloaded constructor for {@link #QDataStream(io.qt.core.QByteArray, io.qt.core.QIODeviceBase.OpenMode)}.

*/ public QDataStream(io.qt.core.@Nullable QByteArray arg__1, io.qt.core.QIODeviceBase.@NonNull OpenModeFlag @NonNull... flags) { this(arg__1, new io.qt.core.QIODeviceBase.OpenMode(flags)); } /** * @deprecated Use {@link #readRawData(java.nio.ByteBuffer)} instead. */ @Deprecated @QtUninvokable public final long readBytes(java.nio.@Nullable ByteBuffer arg__1) { return readRawData(arg__1); } /** * @deprecated Use {@link #readRawData(byte[], int, int)} instead. */ @Deprecated @QtUninvokable public final long readBytes(byte[] arg__1, int offsetOfArg__1, int len) { return readRawData(arg__1==null ? null : java.nio.ByteBuffer.wrap(arg__1, offsetOfArg__1, len)); } /** * @deprecated Use {@link #readRawData(byte[])} instead. */ @Deprecated @QtUninvokable public final long readBytes(byte[] arg__1) { return readRawData(arg__1==null ? null : java.nio.ByteBuffer.wrap(arg__1)); } /** *

Overloaded function for {@link #readRawData(java.nio.ByteBuffer)}.

*/ @QtUninvokable public final long readRawData(byte[] arg__1, int offsetOfArg__1, int len) { return readRawData(arg__1==null ? null : java.nio.ByteBuffer.wrap(arg__1, offsetOfArg__1, len)); } /** *

Overloaded function for {@link #readRawData(java.nio.ByteBuffer)}.

*/ @QtUninvokable public final long readRawData(byte[] arg__1) { return readRawData(arg__1==null ? null : java.nio.ByteBuffer.wrap(arg__1)); } /** * @deprecated Use {@link #writeRawData(java.nio.ByteBuffer)} instead. */ @Deprecated @QtUninvokable public final long writeBytes(java.nio.@Nullable ByteBuffer arg__1) { return writeRawData(arg__1); } /** * @deprecated Use {@link #writeRawData(byte[], int, int)} instead. */ @Deprecated @QtUninvokable public final long writeBytes(byte[] arg__1, int offsetOfArg__1, int len) { return writeRawData(arg__1==null ? null : java.nio.ByteBuffer.wrap(arg__1, offsetOfArg__1, len)); } /** * @deprecated Use {@link #writeRawData(byte[])} instead. */ @Deprecated @QtUninvokable public final long writeBytes(byte[] arg__1) { return writeRawData(arg__1==null ? null : java.nio.ByteBuffer.wrap(arg__1)); } /** *

Overloaded function for {@link #writeRawData(java.nio.ByteBuffer)}.

*/ @QtUninvokable public final long writeRawData(byte[] arg__1, int offsetOfArg__1, int len) { return writeRawData(arg__1==null ? null : java.nio.ByteBuffer.wrap(arg__1, offsetOfArg__1, len)); } /** *

Overloaded function for {@link #writeRawData(java.nio.ByteBuffer)}.

*/ @QtUninvokable public final long writeRawData(byte[] arg__1) { return writeRawData(arg__1==null ? null : java.nio.ByteBuffer.wrap(arg__1)); } }