0

I have a byte array containing encoded bytes as

Byte* encodedBytes;

This contains encoded bytes. Now this array is assigned to an char pointer by typecasting.

 char *data = (char*)encodedBytes; 

Now Is there any API that can give me the size of data ? I can't use strlen() because encoded bytes may contain null character in between as well .

User1234
  • 1,543
  • 4
  • 22
  • 32

0 Answers0