Esempio n. 1
0
        public override int Read(byte[] buffer, int offset, int count)
        {
            QByteArray bytes = m_device.Read(count);

            for (int i = 0; i < bytes.Length(); i++)
            {
                buffer[i + offset] = (byte)bytes.At(i);
            }
            return(bytes.Length());
        }
 public UncontrolledAnimation(QObject target, QByteArray propertyName, QObject parent = null)
     : base(target, propertyName, parent)
 {
     _id = 0;
     SetDuration(250);
     EndValue = new QVariant(0);
 }
Esempio n. 3
0
 public override void Write(byte[] buffer, int offset, int count)
 {
     QByteArray array = new QByteArray();
     for (int i = 0; i < count; i++) {
         array.Append((sbyte) buffer[i + offset]);
     }
     m_device.Write(array);
 }