| ??? 05/24/02 13:05 Read: times |
#23382 - RE: circular buffers by pointers or index ? |
"Sorry, what I meant was, why do you prefer pointers to indexing for buffer manipulation?" To be honest I always worked with pointers before and i quite like them because they are closer to the hardware(address and data) beeing a hardware engineer myself. When it comes to buffers, pointers and indexing are the same but it looks like its easier to use indexing. I just used indexing for my serial buffer and realised its easier to manipulate and keep track of the bytes count received. I started the subject to share opinions about the cons and pros of buffer manipulation with pointers or indexing. And i learned something new from Peter Dannegger and all of you guys. knowledge gaining and sharing is my goal. Thanx |



