Home
last modified time | relevance | path

Searched refs:actLen (Results 1 – 15 of 15) sorted by relevance

/ohos5.0/foundation/filemanagement/app_file_service/utils/src/b_filesystem/
H A Db_file_hash.cpp54 size_t actLen; in ForEachFileSegment() local
56 actLen = fread(buf.get(), 1, pageSize, filp.get()); in ForEachFileSegment()
57 if (actLen > 0) { in ForEachFileSegment()
58 executor(buf.get(), actLen); in ForEachFileSegment()
60 } while (actLen == pageSize); in ForEachFileSegment()
/ohos5.0/foundation/filemanagement/file_api/interfaces/kits/js/src/common/file_helper/
H A Dhash_file.cpp56 size_t actLen; in ForEachFileSegment() local
58 actLen = fread(buf.get(), 1, pageSize, filp.get()); in ForEachFileSegment()
59 if (actLen > 0) { in ForEachFileSegment()
60 executor(buf.get(), actLen); in ForEachFileSegment()
62 } while (actLen == pageSize); in ForEachFileSegment()
/ohos5.0/foundation/filemanagement/file_api/interfaces/kits/cj/src/
H A Dstream_impl.cpp137 size_t actLen = fread(buf.get(), sizeof(char), len, filp); in ReadImpl() local
138 if ((actLen != static_cast<size_t>(len) && !feof(filp)) || ferror(filp)) { in ReadImpl()
139 LOGE("Invalid buffer size and pointer, actlen: %{public}zu", actLen); in ReadImpl()
142 if (actLen != 0) { in ReadImpl()
143 int ret = memcpy_s(buffer, actLen, buf.get(), actLen); in ReadImpl()
148 return {SUCCESS_CODE, static_cast<int64_t>(actLen)}; in ReadImpl()
/ohos5.0/foundation/filemanagement/file_api/interfaces/kits/js/src/mod_fileio/class_stream/
H A Dstream_n_exporter.cpp74 size_t actLen = fread(buf, 1, len, filp); in ReadSync() local
75 if ((actLen != len && !feof(filp)) || ferror(filp)) { in ReadSync()
79 return NVal::CreateInt64(env, actLen).val_; in ReadSync()
145 size_t actLen { 0 }; member
185 arg->actLen = fwrite(buf, 1, len, filp); in Write()
186 if ((arg->actLen == 0) && (arg->actLen != len)) { in Write()
196 return { NVal::CreateInt64(env, arg->actLen) }; in Write()
255 size_t actLen = fread(buf, 1, len, filp); in Read() local
256 if ((actLen != len && !feof(filp)) || ferror(filp)) { in Read()
259 arg->lenRead = actLen; in Read()
/ohos5.0/foundation/filemanagement/file_api/interfaces/kits/js/src/mod_fs/class_randomaccessfile/
H A Drandomaccessfile_n_exporter.cpp160 if (actLen < 0) { in ReadSync()
162 NError(actLen).ThrowErr(env); in ReadSync()
165 rafEntity->filePointer = offset + actLen; in ReadSync()
166 return NVal::CreateInt64(env, actLen).val_; in ReadSync()
203 if (actLen < 0) { in ReadExec()
204 return NError(actLen); in ReadExec()
206 arg->lenRead = actLen; in ReadExec()
207 rafEntity->filePointer = offset + actLen; in ReadExec()
278 int actLen = 0; member
314 arg->actLen = writeLen; in WriteExec()
[all …]
/ohos5.0/foundation/filemanagement/file_api/interfaces/kits/js/src/mod_fileio/properties/
H A Dprop_n_exporter.cpp364 ssize_t actLen = 0; in ReadSync() local
366 actLen = pread(fd, buf, len, pos); in ReadSync()
368 actLen = read(fd, buf, len); in ReadSync()
371 if (actLen == -1) { in ReadSync()
390 if (actLen == -1) { in ReadCallbackExecutor()
393 arg->lenRead = actLen; in ReadCallbackExecutor()
441 ssize_t actLen = 0; in Read() local
443 actLen = pread(fd, buf, len, pos); in Read()
445 actLen = read(fd, buf, len); in Read()
470 arg->actLen = write(fd, buf, len); in WriteExec()
[all …]
H A Dprop_n_exporter.h30 ssize_t actLen = 0; member
/ohos5.0/foundation/filemanagement/file_api/interfaces/kits/js/src/mod_fs/class_stream/
H A Dstream_n_exporter.cpp175 size_t actLen = fread(buf, 1, len, fp.get()); in ReadSync() local
176 if ((actLen != static_cast<size_t>(len) && !feof(fp.get())) || ferror(fp.get())) { in ReadSync()
177 HILOGE("Invalid buffer size and pointer, actlen: %{public}zu", actLen); in ReadSync()
182 return NVal::CreateInt64(env, actLen).val_; in ReadSync()
279 arg->actLen = fwrite(buf, 1, len, fp.get()); in WriteExec()
280 if ((arg->actLen == 0) && (arg->actLen != len)) { in WriteExec()
291 return { NVal::CreateInt64(env, static_cast<int64_t>(arg->actLen)) }; in WriteExec()
354 size_t actLen = fread(buf, 1, len, fp.get()); in ReadExec() local
355 if ((actLen != static_cast<size_t>(len) && !feof(fp.get())) || ferror(fp.get())) { in ReadExec()
356 HILOGE("Invalid buffer size and pointer, actlen: %{public}zu", actLen); in ReadExec()
[all …]
H A Dstream_n_exporter.h67 size_t actLen = 0; member
/ohos5.0/drivers/peripheral/usb/hdi_service/src/
H A Dusbd_accessory.cpp136 int16_t actLen = *(buffer + BASE64_VAL_SHIFT); in ExtraToString() local
137 actLen = actLen >= len ? len: actLen; in ExtraToString()
141 extraData = base64_encode(buffer, actLen); in ExtraToString()
/ohos5.0/foundation/filemanagement/dfs_service/services/distributedfiledaemon/src/network/softbus/
H A Dsoftbus_handler_asset.cpp438 size_t actLen; in CompressFile() local
440 actLen = fread(buf.get(), 1, pageSize, f); in CompressFile()
441 if (actLen > 0) { in CompressFile()
442 zipWriteInFileInZip(outputFile, buf.get(), actLen); in CompressFile()
444 } while (actLen == pageSize); in CompressFile()
/ohos5.0/foundation/bundlemanager/bundle_framework/interfaces/kits/js/zip/napi/properties/
H A Dprop_n_exporter.h30 ssize_t actLen = 0; member
/ohos5.0/foundation/filemanagement/file_api/interfaces/kits/js/src/mod_fs/properties/
H A Dprop_n_exporter.h29 int actLen = 0; member
H A Dprop_n_exporter.cpp671 arg->actLen = ret; in WriteExec()
717 return { NVal::CreateInt64(env, static_cast<int64_t>(arg->actLen)) }; in Write()
/ohos5.0/drivers/peripheral/usb/ddk/host/src/
H A Dliteos_adapter.c140 uint16_t actLen = 0; in OsControlMsg() local
152 …adapterDevice, NULL, &req, (char *)buffer + sizeof(req), USB_SHORT_XFER_OK, &actLen, urb->timeout); in OsControlMsg()
156 urb->actual_length = actLen; in OsControlMsg()