Helper function that initializes TMemoryIORec with given params.
function PrepareMemIO(Data: Pointer; Size: LongInt): TMemoryIORec;
ImagingIO (at line 58)