B
Barzo
Ok, the question for sure will be stupid and the answer should be
simply: "it depends" but, anyway, I want to ask.
I have some data readed from binary files (In my case are audio file)
and I have to store in a temp "buffer" the data readed with a function
like:
File->ReadFileChunk(T buffer_ptr*, const int items_to_read);
I'm thinking to use a structure like an std::vector<T> because I think
it is more simple to manage instead of a simple T buffer[] array;
But, is there a way to store a T* buffer into a vector (and the
opposite) in only-one "copy" operation?
Thanks for any suggestions.
Daniele.
simply: "it depends" but, anyway, I want to ask.
I have some data readed from binary files (In my case are audio file)
and I have to store in a temp "buffer" the data readed with a function
like:
File->ReadFileChunk(T buffer_ptr*, const int items_to_read);
I'm thinking to use a structure like an std::vector<T> because I think
it is more simple to manage instead of a simple T buffer[] array;
But, is there a way to store a T* buffer into a vector (and the
opposite) in only-one "copy" operation?
Thanks for any suggestions.
Daniele.