B
Barzo
Hi,
I would ask a suggestion about how to treat a buffer of char*.
I'm little bit confusing about the use of streams or strings.
If I have a char* buffer like this
const char* pkt = {0x07, 0x00, 0x22, 0x04, 0x00, 0x68, 0xAC,
0xE0 .... }
...and I have to parse it...which is the best method?
Using string I have method like substr() etc... but my buffer may
contains 0x00, so?
Tnx in advance.
Daniele.
I would ask a suggestion about how to treat a buffer of char*.
I'm little bit confusing about the use of streams or strings.
If I have a char* buffer like this
const char* pkt = {0x07, 0x00, 0x22, 0x04, 0x00, 0x68, 0xAC,
0xE0 .... }
...and I have to parse it...which is the best method?
Using string I have method like substr() etc... but my buffer may
contains 0x00, so?
Tnx in advance.
Daniele.