Home
last modified time | relevance | path

Searched refs:truncate (Results 1 – 25 of 67) sorted by relevance

123

/ohos5.0/commonlibrary/rust/ylong_runtime/ylong_runtime/src/fs/
H A Dopen_options.rs180 pub fn truncate(&mut self, truncate: bool) -> &mut Self { in truncate() method
181 self.0.truncate(truncate); in truncate()
319 option.truncate(true); in ut_set_openoption()
H A Dfile_buf.rs44 self.buf.truncate(0); in append_to()
75 Ok(n) => self.buf.truncate(n), in read()
76 _ => self.buf.truncate(0), in read()
/ohos5.0/docs/zh-cn/release-notes/api-diff/monthly-202211/
H A Djs-apidiff-file-management.md26 |新增|NA|模块名: ohos.file.fs<br>类名: fileIo<br>方法名 or 属性名: truncate|@ohos.file.fs.d.ts|
27 |新增|NA|模块名: ohos.file.fs<br>类名: fileIo<br>方法名 or 属性名: truncate|@ohos.file.fs.d.ts|
28 |新增|NA|模块名: ohos.file.fs<br>类名: fileIo<br>方法名 or 属性名: truncate|@ohos.file.fs.d.ts|
52 …runcate<br>废弃版本:N/A|方法名 or 属性名:ftruncate<br>废弃版本:9<br>代替接口:ohos.file.fs.truncate |@ohos.fileio.d.t…
71 |废弃版本有变化|方法名 or 属性名:truncate<br>废弃版本:N/A|方法名 or 属性名:truncate<br>废弃版本:9<br>代替接口:ohos.file.fs.truncat…
72 |废弃版本有变化|方法名 or 属性名:truncate<br>废弃版本:N/A|方法名 or 属性名:truncate<br>废弃版本:9|@ohos.fileio.d.ts|
73 |废弃版本有变化|方法名 or 属性名:truncate<br>废弃版本:N/A|方法名 or 属性名:truncate<br>废弃版本:9|@ohos.fileio.d.ts|
/ohos5.0/docs/en/release-notes/api-diff/monthly-202211/
H A Djs-apidiff-file-management.md26 |Added|NA|Module name: ohos.file.fs<br>Class name: fileIo<br>Method or attribute name: truncate|@oh…
27 |Added|NA|Module name: ohos.file.fs<br>Class name: fileIo<br>Method or attribute name: truncate|@oh…
28 |Added|NA|Module name: ohos.file.fs<br>Class name: fileIo<br>Method or attribute name: truncate|@oh…
52 …ame: ftruncate<br>Deprecated version: 9<br>Substitute API: ohos.file.fs.truncate |@ohos.fileio.d.t…
71 …e name: truncate<br>Deprecated version: N/A|Method or attribute name: truncate<br>Deprecated versi…
72 …ersion changed|Method or attribute name: truncate<br>Deprecated version: N/A|Method or attribute n…
73 …ersion changed|Method or attribute name: truncate<br>Deprecated version: N/A|Method or attribute n…
/ohos5.0/build/ohos/images/mkimage/
H A Dimkcovert.py101 output.truncate(total_blocks * blocksize)
113 output.truncate(total_blocks * blocksize - fill_cnt)
188 outputrow.truncate(get_gap_blocksize(outputrow.tell(), blocksize) * blocksize)
203 output.truncate(int(total_blocks) * int(blocksize) - int(fill_cnt))
/ohos5.0/base/security/asset/services/common/src/
H A Dprocess_info.rs122 process_name.truncate(process_info_ffi.process_name_len as usize); in build()
123 app_id.truncate(process_info_ffi.hap_info.app_id_len as usize); in build()
/ohos5.0/foundation/filemanagement/file_api/interfaces/kits/js/src/mod_fileio/properties/
H A Dtruncate.cpp49 int ret = truncate(path.get(), len); in Sync()
83 int ret = truncate(path.c_str(), len); in Async()
H A Dtruncate_v9.cpp74 if (truncate(fileInfo.path.get(), truncateLen) != 0) { in Sync()
108 if (truncate(fileInfo->path.get(), truncateLen) != 0) { in Async()
/ohos5.0/base/startup/init/scripts/
H A Dparam_cfg_to_code.py71 afile.truncate(0)
116 f.truncate()
/ohos5.0/commonlibrary/rust/ylong_runtime/ylong_runtime/src/iter/parallel/
H A Dvec.rs22 self.truncate(len); in reduce()
/ohos5.0/base/update/updater/services/rust/hash_signed_data/src/
H A Devp.rs45 out_data.truncate(out_len - padding); in evp_decode_block()
/ohos5.0/commonlibrary/rust/ylong_runtime/ylong_runtime/src/io/
H A Dstdio.rs80 self.inner.truncate(0); in clone_into()
95 Ok(n) => self.inner.truncate(n), in read_from()
/ohos5.0/docs/zh-cn/release-notes/changelogs/OpenHarmony_3.2.8.1/
H A Dchangelogs-filemanagement.md31 | @ohos.fileio | **function** truncate(path: string, len?: number, callback?: AsyncCallback…
35 | @ohos.file.fs | **function** truncate(file: string \| number, len?: number, callback?: AsyncCall…
/ohos5.0/foundation/arkui/ace_engine/build/tools/
H A Dbuild_resource_to_bytecode.py45 cpp_file_object.truncate();
/ohos5.0/base/tee/tee_client/services/teecd/include/
H A Dfs_work_agent.h118 } truncate; member
/ohos5.0/docs/zh-cn/release-notes/api-diff/v3.1-Release/
H A Djs-apidiff-file-management.md24 …| fileIO | truncate(path: string, len?: number): Promise\<void>;<br>truncate(path: string, callbac…
/ohos5.0/docs/en/release-notes/api-diff/v3.1-Release/
H A Djs-apidiff-file-management.md24 …| fileIO | truncate(path: string, len?: number): Promise\<void>;<br>truncate(path: string, callbac…
/ohos5.0/docs/zh-cn/release-notes/api-diff/v3.2-beta4/
H A Djs-apidiff-file-management.md26 |新增|NA|模块名: ohos.file.fs<br>类名: fileIo<br>方法名 or 属性名: truncate|@ohos.file.fs.d.ts|
27 |新增|NA|模块名: ohos.file.fs<br>类名: fileIo<br>方法名 or 属性名: truncate|@ohos.file.fs.d.ts|
28 |新增|NA|模块名: ohos.file.fs<br>类名: fileIo<br>方法名 or 属性名: truncate|@ohos.file.fs.d.ts|
340 …runcate<br>废弃版本:N/A|方法名 or 属性名:ftruncate<br>废弃版本:9<br>代替接口:ohos.file.fs.truncate |@ohos.fileio.d.t…
359 |废弃版本有变化|方法名 or 属性名:truncate<br>废弃版本:N/A|方法名 or 属性名:truncate<br>废弃版本:9<br>代替接口:ohos.file.fs.truncat…
360 |废弃版本有变化|方法名 or 属性名:truncate<br>废弃版本:N/A|方法名 or 属性名:truncate<br>废弃版本:9|@ohos.fileio.d.ts|
361 |废弃版本有变化|方法名 or 属性名:truncate<br>废弃版本:N/A|方法名 or 属性名:truncate<br>废弃版本:9|@ohos.fileio.d.ts|
/ohos5.0/docs/en/release-notes/changelogs/OpenHarmony_3.2.8.1/
H A Dchangelogs-filemanagement.md31 | @ohos.fileio | **function** truncate(path: string, len?: number, callback?: AsyncCallback<void>)…
35 | @ohos.file.fs | **function** truncate(file: string \| number, len?: number, callback?: AsyncCallb…
/ohos5.0/base/startup/hvb/tools/
H A Dhvbtool.py438 self.img_handler.truncate(self.img_handler.tell() + num_bytes)
595 def truncate(self, size): member in ImageHandle
606 self.img_handler.truncate(size)
660 self.img_handler.truncate(truncate_at)
999 image.truncate(padding)
1072 image.truncate(footer.imagesize)
/ohos5.0/build/tools/
H A Dproduct_config_version_convert.py94 f.truncate()
/ohos5.0/drivers/hdf_core/framework/tools/hdf_dev_eco_tool/command_line/
H A Dhdf_dot_config_file.py40 file_read.truncate()
/ohos5.0/base/tee/tee_client/services/teecd/src/
H A Dfs_work_agent.c875 tlogv("sec storage : truncate, len=%u\n", transControl->args.truncate.len); in TruncateWork()
880 if (JoinFileName((char *)(transControl->args.truncate.name), nameBuff, sizeof(nameBuff)) == 0) { in TruncateWork()
881 int32_t ret = truncate(nameBuff, (long)transControl->args.truncate.len); in TruncateWork()
/ohos5.0/base/security/selinux_adapter/scripts/
H A Dbuild_ignore_cfg.py135 dst_f.truncate(0)
/ohos5.0/docs/zh-cn/application-dev/reference/apis-core-file-kit/
H A Djs-apis-fileio.md1448 > 从API version 9开始废弃,请使用[fs.truncate](js-apis-file-fs.md#fstruncate)替代。
1472 console.info("truncate file succeed");
1474 console.error("truncate file failed with error:" + err);
1541 ## fileio.truncate<sup>7+</sup>
1543 truncate(path: string, len?: number): Promise&lt;void&gt;
1549 > 从API version 9开始废弃,请使用[fs.truncate](js-apis-file-fs.md#fstruncate)替代。
1572 fileio.truncate(filePath, len).then(() => {
1573 console.info("truncate file succeed");
1575 console.error("truncate file failed with error:" + err);
1580 ## fileio.truncate<sup>7+</sup>
[all …]

123