Roughly speaking, I have a class that holds an array of const unsigned char. Objects of this class are created by a special factory function that also takes care of constructing the array (on the heap). When an object is created in the factory function, it will be given the pointer to the array. The array won't be copied, the object will just use the given pointer. On destruction, it will deallocate the chunk of memory that the array occupied.Roughly speaking, I have a class that holds an