Is there anyway to do something like this?
(correct pointer datatype) returnPointer(void* ptr, int depth){ if(depth == 8) return (uint8*)ptr; else if (depth == 16) return (uint16*)ptr; else return (uint32*)ptr;}
Thanks
Is there anyway to do something like this?
(correct pointer datatype) returnPointer(void* ptr, int depth){ if(depth == 8) return (uint8*)ptr; else if (depth == 16) return (uint16*)ptr; else return (uint32*)ptr;}
Thanks