Lines Matching refs:file

22 : file(NULL), io_mode(std::ios_base::openmode(0)), own_fd(false),
32 // Sync output buffer and close only if responsible for file
46 return gzsetparams(file, comp_level, comp_strategy);
49 // Open gzipped file
54 // Fail if file already open
66 // Attempt to open file
67 if ((file = gzopen(name, char_mode)) == NULL)
77 // Attach to gzipped file
82 // Fail if file already open
94 // Attempt to attach to file
95 if ((file = gzdopen(fd, char_mode)) == NULL)
105 // Close gzipped file
109 // Fail immediately if no file is open
114 // Attempt to sync and close gzipped file
117 if (gzclose(file) < 0)
120 file = NULL;
171 // Calls to underflow will fail if file not opened for reading
181 // Fill get area from gzipped file
191 // If the file hasn't been opened for reading, produce error
195 // Attempt to fill internal buffer from gzipped file
197 int bytes_read = gzread(file, buffer, buffer_size);
205 // Make all bytes read from file available as get area
212 // Write put area to gzipped file
228 // Number of characters to write to file
233 // If the file hasn't been opened for writing, produce error
236 // If gzipped file won't accept all bytes written to it, fail
237 if (gzwrite(file, this->pbase(), bytes_to_write) != bytes_to_write)
243 // Write extra character to file if not EOF
246 // If the file hasn't been opened for writing, produce error
251 // If gzipped file won't accept this character, fail
252 if (gzwrite(file, &last_char, 1) != 1)
297 // Write put area to gzipped file (i.e. ensures that put area is empty)
378 // Initialize stream buffer and open file
387 // Initialize stream buffer and attach to file
396 // Open file and go into fail() state if unsuccessful
407 // Attach to file and go into fail() state if unsuccessful
418 // Close file
433 // Initialize stream buffer and open file
442 // Initialize stream buffer and attach to file
451 // Open file and go into fail() state if unsuccessful
462 // Attach to file and go into fail() state if unsuccessful
473 // Close file