當前位置: 首頁>>代碼示例>>C#>>正文


C# Qyoto.QByteArray類代碼示例

本文整理匯總了C#中Qyoto.QByteArray的典型用法代碼示例。如果您正苦於以下問題:C# QByteArray類的具體用法?C# QByteArray怎麽用?C# QByteArray使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


QByteArray類屬於Qyoto命名空間,在下文中一共展示了QByteArray類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。

示例1: Init

 public static void Init(string[] argv, QByteArray appname, QByteArray catalog, KLocalizedString programName, QByteArray version)
 {
     string[] args = new string[argv.Length + 1];
     args[0] = System.Reflection.Assembly.GetExecutingAssembly().Location;
     argv.CopyTo(args, 1);
     staticInterceptor.Invoke("init$?####", "init(int, char**, const QByteArray&, const QByteArray&, const KLocalizedString&, const QByteArray&)", typeof(void), false, typeof(int), args.Length, typeof(string[]), args, typeof(QByteArray), appname, typeof(QByteArray), catalog, typeof(KLocalizedString), programName, typeof(QByteArray), version);
 }
開發者ID:KDE,項目名稱:assemblygen,代碼行數:7,代碼來源:KCmdLineArgsExtras.cs

示例2: FromArray

 public static QByteArray FromArray(byte[] array)
 {
     var qba = new QByteArray(array.Length, '\0');
     Pointer<sbyte> p = qba.Data();
     for (int i = 0; i < array.Length; i++) {
         p[i] = (sbyte) array[i];
     }
     return qba;
 }
開發者ID:jrudolph,項目名稱:synapse,代碼行數:9,代碼來源:QByteArrayConverter.cs

示例3: ToArray

 public static byte[] ToArray(QByteArray qba)
 {
     Pointer<sbyte> p = qba.Data();
     byte[] array = new byte[qba.Size()];
     for (int i = 0; i < qba.Size(); i++) {
         array[i] = (byte) p[i];
     }
     return array;
 }
開發者ID:jrudolph,項目名稱:synapse,代碼行數:9,代碼來源:QByteArrayConverter.cs

示例4: DeleteGroupImpl

 protected override void DeleteGroupImpl(QByteArray group, uint flags)
 {
     interceptor.Invoke("deleteGroupImpl#$", "deleteGroupImpl(const QByteArray&, KConfigBase::WriteConfigFlags)", typeof(void), typeof(QByteArray), group, typeof(uint), flags);
 }
開發者ID:KDE,項目名稱:kimono,代碼行數:4,代碼來源:KConfigGroup.cs

示例5: QSslKey

 public QSslKey(QIODevice device, QSsl.KeyAlgorithm algorithm, QSsl.EncodingFormat format, QSsl.KeyType type, QByteArray passPhrase)
     : this((Type) null)
 {
     CreateProxy();
     interceptor.Invoke("QSslKey#$$$#", "QSslKey(QIODevice*, QSsl::KeyAlgorithm, QSsl::EncodingFormat, QSsl::KeyType, const QByteArray&)", typeof(void), typeof(QIODevice), device, typeof(QSsl.KeyAlgorithm), algorithm, typeof(QSsl.EncodingFormat), format, typeof(QSsl.KeyType), type, typeof(QByteArray), passPhrase);
 }
開發者ID:KDE,項目名稱:qyoto,代碼行數:6,代碼來源:QSslKey.cs

示例6: Session

 /// <remarks>
 ///  Creates a new session.
 /// <param> name="sessionId" The identifier for this session, will be a
 ///                   random value if empty.
 /// </param><param> name="parent" The parent object.
 /// </param></remarks>        <short>    Creates a new session.</short>
 ///         <see> defaultSession</see>
 public Session(QByteArray sessionId, QObject parent)
     : this((Type) null)
 {
     CreateProxy();
     interceptor.Invoke("Session##", "Session(const QByteArray&, QObject*)", typeof(void), typeof(QByteArray), sessionId, typeof(QObject), parent);
 }
開發者ID:KDE,項目名稱:kimono,代碼行數:13,代碼來源:Akonadi_Session.cs

示例7: SetOrigFileName

 /// <remarks>
 ///  For writing gzip compressed files only:
 ///  set the name of the original file, to be used in the gzip header.
 /// <param> name="fileName" the name of the original file
 ///      </param></remarks>        <short>    For writing gzip compressed files only:  set the name of the original file, to be used in the gzip header.</short>
 public void SetOrigFileName(QByteArray fileName)
 {
     interceptor.Invoke("setOrigFileName#", "setOrigFileName(const QByteArray&)", typeof(void), typeof(QByteArray), fileName);
 }
開發者ID:KDE,項目名稱:kimono,代碼行數:9,代碼來源:KFilterDev.cs

示例8: Qstrcmp

 public static int Qstrcmp(string str1, QByteArray str2)
 {
     return (int) staticInterceptor.Invoke("qstrcmp$#", "qstrcmp(const char*, const QByteArray&)", typeof(int), typeof(string), str1, typeof(QByteArray), str2);
 }
開發者ID:KDE,項目名稱:qyoto,代碼行數:4,代碼來源:Qt.cs

示例9: Read

 public static QDataStream Read(QDataStream arg1, QByteArray arg2)
 {
     return (QDataStream) staticInterceptor.Invoke("operator>>##", "operator>>(QDataStream&, QByteArray&)", typeof(QDataStream), typeof(QDataStream), arg1, typeof(QByteArray), arg2);
 }
開發者ID:KDE,項目名稱:qyoto,代碼行數:4,代碼來源:Qt.cs

示例10: Write

 /// <remarks>
 ///  Write block
 /// <param> name="data" the data to write
 ///      </param></remarks>        <short>    Write block </short>
 public void Write(QByteArray data)
 {
     interceptor.Invoke("write#", "write(const QByteArray&)", typeof(void), typeof(QByteArray), data);
 }
開發者ID:KDE,項目名稱:kimono,代碼行數:8,代碼來源:KIO_FileJob.cs

示例11: QCompress

 public static QByteArray QCompress(QByteArray data, int compressionLevel)
 {
     return (QByteArray) staticInterceptor.Invoke("qCompress#$", "qCompress(const QByteArray&, int)", typeof(QByteArray), typeof(QByteArray), data, typeof(int), compressionLevel);
 }
開發者ID:KDE,項目名稱:qyoto,代碼行數:4,代碼來源:Qt.cs

示例12: WriteEntry

 /// <remarks>
 ///  Writes a value to the config object.
 /// <param> name="key" The key to write
 /// </param><param> name="value" The value to write
 /// </param><param> name="pFlags" The flags to use when writing this entry.
 ///      </param></remarks>        <short>    Writes a value to the config object.</short>
 public void WriteEntry(string key, QByteArray value, uint pFlags)
 {
     interceptor.Invoke("writeEntry$#$", "writeEntry(const QString&, const QByteArray&, KConfigBase::WriteConfigFlags)", typeof(void), typeof(string), key, typeof(QByteArray), value, typeof(uint), pFlags);
 }
開發者ID:KDE,項目名稱:kimono,代碼行數:10,代碼來源:KConfigGroup.cs

示例13: QImageWriter

 public QImageWriter(string fileName, QByteArray format)
     : this((Type) null)
 {
     CreateProxy();
     interceptor.Invoke("QImageWriter$#", "QImageWriter(const QString&, const QByteArray&)", typeof(void), typeof(string), fileName, typeof(QByteArray), format);
 }
開發者ID:KDE,項目名稱:qyoto,代碼行數:6,代碼來源:QImageWriter.cs

示例14: SetFormat

 public void SetFormat(QByteArray format)
 {
     interceptor.Invoke("setFormat#", "setFormat(const QByteArray&)", typeof(void), typeof(QByteArray), format);
 }
開發者ID:KDE,項目名稱:qyoto,代碼行數:4,代碼來源:QImageWriter.cs

示例15: RestoreState

 public bool RestoreState(QByteArray state)
 {
     return (bool) interceptor.Invoke("restoreState#", "restoreState(const QByteArray&)", typeof(bool), typeof(QByteArray), state);
 }
開發者ID:KDE,項目名稱:qyoto,代碼行數:4,代碼來源:QFileDialog.cs


注:本文中的Qyoto.QByteArray類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。