Byork:
Got it, thanks for pointing me in the right direction. Did a little researching and seems that I am out out luck passing the array through a function.
If you are comfortable with template:
template<size_t N> byte calculateArraySize(byte (&arr)[N])
{
return sizeof(arr) / sizeof(byte);
//Also same as return N;
}
Otherwise, just pass the size of the array along with the pointer.