Creates a new FlatMemStream object, and returns a SmartPointer to the new object.
Memory is allocated via odrxAlloc() and is freed via odrxFree() in destructor;