Code:
&buf[0]
should get what you want.
If you intend to use it in a program, you'd be, generally, better off, with a vector<BYTE>::iterator .