load_from_mapped_file


Description:

[ Version ( since = "1.6" ) ]
public bool load_from_mapped_file (string filename) throws Error

Loads a JSON stream from the content of `filename` and parses it.

Unlike [method@Json.Parser.load_from_file], `filename` will be memory mapped as read-only and parsed. `filename` will be unmapped before this function returns.

If mapping or reading the file fails, a `G_FILE_ERROR` will be returned.

Parameters:

this

a parser

filename

the path for the file to parse

Returns:

`TRUE` if the file was successfully loaded and parsed.