Lines Matching refs:data
125 ssize_t bytes_read = infile->ReadAtCurrentPos(buffer.data(), buffer.size());
545 int ReadFile(const FilePath& filename, char* data, int max_size) {
550 ssize_t bytes_read = HANDLE_EINTR(read(fd, data, max_size));
556 int WriteFile(const FilePath& filename, const char* data, int size) {
561 int bytes_written = WriteFileDescriptor(fd, data, size) ? size : -1;
567 bool WriteFileDescriptor(const int fd, const char* data, int size) {
573 write(fd, data + bytes_written_total, size - bytes_written_total));
581 bool AppendToFile(const FilePath& filename, const char* data, int size) {
588 // This call will either write all of the data or return false.
589 if (!WriteFileDescriptor(fd, data, size)) {