new_mem


Description:

public static DataModel new_mem (string data, bool random_access, Set? options)

Creates a new DataModel object which contains the data stored in the data string.

Important note: the data string is not copied for memory efficiency reasons and should not therefore be altered in any way as long as the returned data model exists.

Parameters:

data

a string containing the data to import

random_access

TRUE if random access will be required

options

importing options, see new_file for more information

Returns:

a pointer to the newly created DataModel.