Home
last modified time | relevance | path

Searched refs:read_req (Results 1 - 5 of 5) sorted by relevance

/foundation/filemanagement/file_api/interfaces/kits/cj/src/
H A DrandomAccessFile_impl.cpp46 std::unique_ptr<uv_fs_t, decltype(CommonFunc::FsReqCleanup)*> read_req = { in DoReadRAF() local
48 if (read_req == nullptr) { in DoReadRAF()
53 int ret = uv_fs_read(nullptr, read_req.get(), fd, &iov, 1, offset, nullptr); in DoReadRAF()
H A Dfile_fs_impl.cpp794 std::unique_ptr<uv_fs_t, decltype(CommonFunc::FsReqCleanup)*> read_req = { in Read() local
796 if (!read_req) { in Read()
801 int readCode = uv_fs_read(nullptr, read_req.get(), fd, &buffer, 1, offset, nullptr); in Read()
829 std::unique_ptr<uv_fs_t, decltype(CommonFunc::FsReqCleanup)*> read_req = { in ReadCur() local
831 if (!read_req) { in ReadCur()
836 int readCode = uv_fs_read(nullptr, read_req.get(), fd, &buffer, 1, -1, nullptr); in ReadCur()
1130 std::unique_ptr<uv_fs_t, decltype(CommonFunc::FsReqCleanup)*> read_req = { in ReadFromFile() local
1132 if (read_req == nullptr) { in ReadFromFile()
1136 return uv_fs_read(nullptr, read_req.get(), fd, &readbuf, 1, offset, nullptr); in ReadFromFile()
/foundation/filemanagement/file_api/interfaces/kits/js/src/mod_fs/properties/
H A Dread_text.cpp107 std::unique_ptr<uv_fs_t, decltype(CommonFunc::fs_req_cleanup)*> read_req = { in ReadTextAsync() local
109 if (!read_req) { in ReadTextAsync()
113 arg->len = uv_fs_read(nullptr, read_req.get(), sfd.GetFD(), &readbuf, 1, offset, nullptr); in ReadTextAsync()
139 std::unique_ptr<uv_fs_t, decltype(CommonFunc::fs_req_cleanup)*> read_req = { in ReadFromFile() local
141 if (read_req == nullptr) { in ReadFromFile()
145 return uv_fs_read(nullptr, read_req.get(), fd, &readbuf, 1, offset, nullptr); in ReadFromFile()
H A Dprop_n_exporter.cpp562 std::unique_ptr<uv_fs_t, decltype(CommonFunc::fs_req_cleanup)*> read_req = { in ReadSync() local
564 if (!read_req) { in ReadSync()
569 int ret = uv_fs_read(nullptr, read_req.get(), fd, &buffer, 1, offset, nullptr); in ReadSync()
582 std::unique_ptr<uv_fs_t, decltype(CommonFunc::fs_req_cleanup)*> read_req = { in ReadExec() local
584 if (!read_req) { in ReadExec()
588 int ret = uv_fs_read(nullptr, read_req.get(), fd, &buffer, 1, offset, nullptr); in ReadExec()
/foundation/filemanagement/file_api/interfaces/kits/js/src/mod_fs/class_randomaccessfile/
H A Drandomaccessfile_n_exporter.cpp44 std::unique_ptr<uv_fs_t, decltype(CommonFunc::fs_req_cleanup)*> read_req = { in DoReadRAF() local
46 if (read_req == nullptr) { in DoReadRAF()
51 int ret = uv_fs_read(nullptr, read_req.get(), fd, &iov, 1, offset, nullptr); in DoReadRAF()

Completed in 6 milliseconds