Hello,
I am calling a Filestream::Read() (i.e. fs->Read(arg1, arg2, arg3)).
The problem is I have a pointer to an unsigned char block of memory and
would like to fill it with the call to 'Read'. However the FileStream::Read
function only takes a Byte __gc[] argument. I tried the following
Byte __gc *bytePtr = bufferPtr;
fs->Read(bytePtr, 0, 100);
....It does not allow casting from Byte __gc* to Byte __gc[]. Aren't these
them same thing? That is, aren't both memory objects on the runtime heap
as well as both being pointers (under the hood) to the base address of the
array? Any help on a solution to this would be appreciated.
-TGF