pub fn addFilePath(m: *Manifest, file_path: Path, max_file_size: ?usize) !usize 403
404
405 pub fn addFilePath(m: *Manifest, file_path: Path, max_file_size: ?usize) !usize {
return addOpenedFile(m, file_path, null, max_file_size);
}
Add a file as a dependency of process being cached. When
hitis called, the file's contents will be checked to ensure that it matches the contents from previous times.Max file size will be used to determine the amount of space the file contents are allowed to take up in memory. If max_file_size is null, then the contents will not be loaded into memory.
Returns the index of the entry in the
filesarray list. You can use it to access the contents of the file after callinghit()like so: