L
Larry
In fact, "vector< unsigned char >" is full-fledged type, which
behaves like any other type, where as "unsigned char buffer[ 51 ]"
creates an object of a second class type, which is fairly
broken, and doesn't behave normally.
Also, vector< unsigned char > will normally do bounds checking,
and other important things to avoid undefined behavior.
There are, of course, cases where something like "unsigned char
buffer[ 51 ]" is justified, but they aren't that common.
well, I could have done with vectors indeed. Yet, I thought becauese of all
those internal checks vector does maybe my solution would have been
faster...
where:
unsigned char buffer[51];
is fixed length. Also, I know that it will never deal with data longer that
51 bytes beforhand!
I am doing real time application I need to run fast.
thanks