If I have a char* for example :
Code:
{0x01,0x02,0x03,0x04,0x05}
and I want to add 0x00 before each byte .

the result will be :
Code:
{0x00,0x01,0x00,0x02,0x00,0x03,0x00,0x04,0x00,0x05}
What is the faster way to do that ?