Lines Matching defs:file
34 BFile::BFile(const BFile& file)
38 *this = file;
42 // Creates a BFile and initializes it to the file referred to by
52 // Creates a BFile and initializes it to the file referred to by
62 // Creates a BFile and initializes it to the file referred to by
72 // Creates a BFile and initializes it to the file referred to by
95 // Re-initializes the BFile to the file referred to by the
124 // Re-initializes the BFile to the file referred to by the
151 // Re-initializes the BFile to the file referred to by the
175 // Re-initializes the BFile to the file referred to by the
200 // Reports whether or not the file is readable.
209 // Reports whether or not the file is writable.
218 // Reads a number of bytes from the file into a buffer.
228 // Reads a number of bytes from a certain position within the file
242 // Writes a number of bytes from a buffer into the file.
253 // into the file.
266 // Seeks to another read/write position within the file.
276 // Gets the current read/write position within the file.
286 // Sets the size of the file.
300 // Gets the size of the file.
310 BFile::operator=(const BFile &file)
312 if (&file != this) {
315 if (file.InitCheck() == B_OK) {
316 // duplicate the file descriptor
317 int fd = _kern_dup(file.get_fd());
321 fMode = file.fMode;
340 /*! Gets the file descriptor of the BFile.
344 \returns The file descriptor, or -1 if not properly initialized.