How to enter "n" number of elements in a queue (array)?

In reply to sharat:

data_payload is a dynamic array. You have to construct this. There aare 2 ways to do this:
(1) calling the constructor new: data_payload = new[500]; constructs you an array with 500 entries.
(2) impicit construction by using an assignment pattern: data_payload = '{'h01, 'h02, …};