Lines Matching defs:file
3 // found in the LICENSE file.
35 // Reads the entire contents of a file into a newly malloc'd buffer.
37 FILE* file = fopen(filename, "rb");
38 if (!file) {
42 (void) fseek(file, 0, SEEK_END);
43 size_t file_length = ftell(file);
47 (void) fseek(file, 0, SEEK_SET);
52 size_t bytes_read = fread(buffer, 1, file_length, file);
53 (void) fclose(file);
64 // Returns the full path for an external V8 data file based on either
79 // Reads an extenal V8 data file from the |options|-indicated location,