Results 1 to 8 of 8

Thread: Add QByteArray

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Mar 2012
    Posts
    13
    Qt products
    Qt4
    Thanks
    1

    Default Add QByteArray

    I have two binary files, of which I have no clue about their data organization. I have them as QByteArray stream and overlap them meaning a[i]=b[i]+c[i].

    I made an attempt with

    QByteArray x,y,z
    for(k=0;k<x.size();k++){
    for(l=0;l<y.size();l++){
    if(k=l){
    z[k]=x[k]+y[l];
    z.append(z[k]);
    }
    }
    }

    I know that it was a naive attempt but couldn't do more as I have no clue about the internal data organization, all I know is they are binary. Any suggestions or help please !!
    Last edited by CodeHunt; 1st May 2012 at 21:50. Reason: Typo

Similar Threads

  1. Replies: 1
    Last Post: 22nd June 2011, 08:12
  2. XoR on hex/QByteArray
    By meena in forum Qt Programming
    Replies: 1
    Last Post: 13th July 2010, 15:41
  3. Replies: 9
    Last Post: 25th July 2009, 13:27
  4. QByteArray
    By gyre in forum Newbie
    Replies: 4
    Last Post: 9th October 2007, 18:30
  5. QByteArray in Qt3
    By joseph in forum Qt Programming
    Replies: 1
    Last Post: 6th September 2007, 06:16

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.