File module

map_entire_file_end

procedureSource

Releases what map_entire_file_start returned and leaves data empty: it unmaps the view on Windows and frees the text elsewhere. Do not use the old data afterwards. A failure to unmap is logged and data keeps its value.

map_entire_file_end :: (file_info: *Map_File_Info)

Parameters

file_info: *Map_File_Info
Example↗
info := string_to_map_file_info(copy_string("abc"));
map_entire_file_end(*info);
assert(info.data.count == 0);

See also