 |
Length of a BYTE array in C++ - Stack Overflow
If it is a local variable allocated on the stack you can calculate it like this: BYTE array[] = { 10, 20, 30, ... }; size_t lenght = sizeof(array) / sizeof(BYTE); If you receive a pointer to the beginning of the array or you allocate it dynamically(on the
stackoverflow.com |
 |