smilesonisa...@gmail.com wrote:
Hi all,
I am facing difficulty in copying few octets from a vector to a
buffer.
What kind of difficulty?
typedef unsigned char uint8_t;
I have a vector std::vector<uint8_t*> m_Data;
which contains the following octets. I want to copy (30 74 64 230 0 8)
to a buffer. I saw in the web and got code where iterator is used to
copy all the octets not partial elements. How will I retrieve 6 octets
from the vector? I am new to C++ and facing lot of problems in
conversion.
"In conversion"? To and from what?
> I tried a lot but couldnot succeed.Could anybody help me
in this regard?
Yes, we can help. What have you tried? Post your code.
Any example source code will be great help.
Show us yours and we'll show you ours. Oh, and while you're at it,
check out FAQ 5.2, please. You can find the FAQ list here:http://www.parashift.com/c++-faq-lite/
Vector Elements
-------------------------
1 0 94 0 0 2 0 30 74 64 230 0 8 0 69 0 0 48 0 0 0 0 1 17 168 216 146
223 158 3 2
24 0 0 2 7 193 7 193 0 28 81 57 0 0 8 3 10 100 5 0 99 105 115 99 111 0
0 0 146 2
23 158 1
V
--
Please remove capital 'A's when replying by e-mail
I do not respond to top-posted replies, please don't ask