make_mapped


Description:

[ DestroysInstance ]
public Memory? make_mapped (out MapInfo info, MapFlags flags)

Create a Memory object that is mapped with flags.

If this is mappable with flags, this function returns the mapped this directly. Otherwise a mapped copy of this is returned.

This function takes ownership of old this and returns a reference to a new Memory.

Parameters:

this

a Memory

info

pointer for info

flags

mapping flags

Returns:

a Memory object mapped with flags or null when a mapping is not possible.