I am new in Queue (FIFO) and Qt. I want to create a Queue of unsigned char array in Qt. How to do it? Please help
unsigned char buffer[1024];
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If you want to use the Qt API, then you can use the QQueue class –
If you want to build the queue on your own, then I guess you can declare a
Queueclass like this –If you want to maintain a Queue of
unsigned chararray, then you will have to maintain a queue ofunsigned charpointers –Note: You should take care of the memory cleanup after you are done with this queue. IMHO, you better avoid this type of design though.