cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
sarath_97
Newbie
Newbie
314 Views
Registered: ‎10-24-2019

Variable length variable

How can I read 40 bits of data from a heap at a time.

0 Kudos
Reply
1 Reply
kennard
Observer
Observer
248 Views
Registered: ‎10-03-2019

I think we need more information to understand what you are trying to do.

In C, if p is a pointer to the heap, then this will read 40 bits (5 bytes) starting at address p:

uint8_t dst[5];
memcpy(dst, p, sizeof(dst));

Does that do what you want?

0 Kudos
Reply