I create a vector of uint_8t*
sometimes with 3, 4 or 5 bytes but when I make the sizeof
my array, I always get 4. How can I solve this?
After creating my array I want to get the length of it.
Example:
uint_8t* u8;
u8[0]=...;
u8[1]=...;
sizeof(u8)=4
instead of 2
.
sizeof(uint8_t)
is 1
, I Alo tried
sizeof(u8)/sizeof(u8[0])` and I get 4