未验证 提交 d01a7a7e 编写于 作者: O openharmony_ci 提交者: Gitee

!11133 fileio options 去除冗余空行

Merge pull request !11133 from zhuhongtao666/myfeature
...@@ -655,11 +655,7 @@ openSync(path: string, flags?: number, mode?: number): number ...@@ -655,11 +655,7 @@ openSync(path: string, flags?: number, mode?: number): number
## fileio.read ## fileio.read
read(fd: number, buffer: ArrayBuffer, options?: { read(fd: number, buffer: ArrayBuffer, options?: { offset?: number; length?: number; position?: number; }): Promise<ReadOut>
offset?: number;
length?: number;
position?: number;
}): Promise<ReadOut>
从文件读取数据,使用Promise异步回调。 从文件读取数据,使用Promise异步回调。
...@@ -696,11 +692,7 @@ read(fd: number, buffer: ArrayBuffer, options?: { ...@@ -696,11 +692,7 @@ read(fd: number, buffer: ArrayBuffer, options?: {
## fileio.read ## fileio.read
read(fd: number, buffer: ArrayBuffer, options: { read(fd: number, buffer: ArrayBuffer, options: { offset?: number; length?: number; position?: number; }, callback: AsyncCallback<ReadOut>): void
offset?: number;
length?: number;
position?: number;
}, callback: AsyncCallback<ReadOut>): void
从文件读取数据,使用callback异步回调。 从文件读取数据,使用callback异步回调。
...@@ -732,11 +724,7 @@ read(fd: number, buffer: ArrayBuffer, options: { ...@@ -732,11 +724,7 @@ read(fd: number, buffer: ArrayBuffer, options: {
## fileio.readSync ## fileio.readSync
readSync(fd: number, buffer: ArrayBuffer, options?: { readSync(fd: number, buffer: ArrayBuffer, options?: { offset?: number; length?: number; position?: number; }): number
offset?: number;
length?: number;
position?: number;
}): number
以同步方法从文件读取数据。 以同步方法从文件读取数据。
...@@ -927,12 +915,7 @@ unlinkSync(path: string): void ...@@ -927,12 +915,7 @@ unlinkSync(path: string): void
## fileio.write ## fileio.write
write(fd: number, buffer: ArrayBuffer | string, options?: { write(fd: number, buffer: ArrayBuffer | string, options?: { offset?: number; length?: number; position?: number; encoding?: string; }): Promise<number>
offset?: number;
length?: number;
position?: number;
encoding?: string;
}): Promise<number>
将数据写入文件,使用Promise异步回调。 将数据写入文件,使用Promise异步回调。
...@@ -967,12 +950,7 @@ write(fd: number, buffer: ArrayBuffer | string, options?: { ...@@ -967,12 +950,7 @@ write(fd: number, buffer: ArrayBuffer | string, options?: {
## fileio.write ## fileio.write
write(fd: number, buffer: ArrayBuffer | string, options: { write(fd: number, buffer: ArrayBuffer | string, options: { offset?: number; length?: number; position?: number; encoding?: string; }, callback: AsyncCallback<number>): void
offset?: number;
length?: number;
position?: number;
encoding?: string;
}, callback: AsyncCallback<number>): void
将数据写入文件,使用callback异步回调。 将数据写入文件,使用callback异步回调。
...@@ -1002,12 +980,7 @@ write(fd: number, buffer: ArrayBuffer | string, options: { ...@@ -1002,12 +980,7 @@ write(fd: number, buffer: ArrayBuffer | string, options: {
## fileio.writeSync ## fileio.writeSync
writeSync(fd: number, buffer: ArrayBuffer | string, options?: { writeSync(fd: number, buffer: ArrayBuffer | string, options?: { offset?: number; length?: number; position?: number; encoding?: string; }): number
offset?: number;
length?: number;
position?: number;
encoding?: string;
}): number
以同步方法将数据写入文件。 以同步方法将数据写入文件。
...@@ -1441,11 +1414,7 @@ truncateSync(path: string, len?: number): void ...@@ -1441,11 +1414,7 @@ truncateSync(path: string, len?: number): void
## fileio.readText<sup>7+</sup> ## fileio.readText<sup>7+</sup>
readText(filePath: string, options?: { readText(filePath: string, options?: { position?: number; length?: number; encoding?: string; }): Promise&lt;string&gt;
position?: number;
length?: number;
encoding?: string;
}): Promise&lt;string&gt;
基于文本方式读取文件(即直接读取文件的文本内容),使用Promise异步回调。 基于文本方式读取文件(即直接读取文件的文本内容),使用Promise异步回调。
...@@ -1478,11 +1447,7 @@ readText(filePath: string, options?: { ...@@ -1478,11 +1447,7 @@ readText(filePath: string, options?: {
## fileio.readText<sup>7+</sup> ## fileio.readText<sup>7+</sup>
readText(filePath: string, options: { readText(filePath: string, options: { position?: number; length?: number; encoding?: string; }, callback: AsyncCallback&lt;string&gt;): void
position?: number;
length?: number;
encoding?: string;
}, callback: AsyncCallback&lt;string&gt;): void
基于文本方式读取文件(即直接读取文件的文本内容),使用callback异步回调。 基于文本方式读取文件(即直接读取文件的文本内容),使用callback异步回调。
...@@ -1508,11 +1473,7 @@ readText(filePath: string, options: { ...@@ -1508,11 +1473,7 @@ readText(filePath: string, options: {
## fileio.readTextSync<sup>7+</sup> ## fileio.readTextSync<sup>7+</sup>
readTextSync(filePath: string, options?: { readTextSync(filePath: string, options?: { position?: number; length?: number; encoding?: string; }): string
position?: number;
length?: number;
encoding?: string;
}): string
以同步方法基于文本方式读取文件(即直接读取文件的文本内容)。 以同步方法基于文本方式读取文件(即直接读取文件的文本内容)。
...@@ -2995,12 +2956,7 @@ flushSync(): void ...@@ -2995,12 +2956,7 @@ flushSync(): void
### write<sup>7+</sup> ### write<sup>7+</sup>
write(buffer: ArrayBuffer | string, options?: { write(buffer: ArrayBuffer | string, options?: { offset?: number; length?: number; position?: number; encoding?: string; }): Promise&lt;number&gt;
offset?: number;
length?: number;
position?: number;
encoding?: string;
}): Promise&lt;number&gt;
将数据写入流文件,使用Promise异步回调。 将数据写入流文件,使用Promise异步回调。
...@@ -3034,12 +2990,7 @@ write(buffer: ArrayBuffer | string, options?: { ...@@ -3034,12 +2990,7 @@ write(buffer: ArrayBuffer | string, options?: {
### write<sup>7+</sup> ### write<sup>7+</sup>
write(buffer: ArrayBuffer | string, options: { write(buffer: ArrayBuffer | string, options: { offset?: number; length?: number; position?: number; encoding?: string; }, callback: AsyncCallback&lt;number&gt;): void
offset?: number;
length?: number;
position?: number;
encoding?: string;
}, callback: AsyncCallback&lt;number&gt;): void
将数据写入流文件,使用callback异步回调。 将数据写入流文件,使用callback异步回调。
...@@ -3069,12 +3020,7 @@ write(buffer: ArrayBuffer | string, options: { ...@@ -3069,12 +3020,7 @@ write(buffer: ArrayBuffer | string, options: {
### writeSync<sup>7+</sup> ### writeSync<sup>7+</sup>
writeSync(buffer: ArrayBuffer | string, options?: { writeSync(buffer: ArrayBuffer | string, options?: { offset?: number; length?: number; position?: number; encoding?: string; }): number
offset?: number;
length?: number;
position?: number;
encoding?: string;
}): number
以同步方法将数据写入流文件。 以同步方法将数据写入流文件。
...@@ -3104,11 +3050,7 @@ writeSync(buffer: ArrayBuffer | string, options?: { ...@@ -3104,11 +3050,7 @@ writeSync(buffer: ArrayBuffer | string, options?: {
### read<sup>7+</sup> ### read<sup>7+</sup>
read(buffer: ArrayBuffer, options?: { read(buffer: ArrayBuffer, options?: { position?: number; offset?: number; length?: number; }): Promise&lt;ReadOut&gt;
position?: number;
offset?: number;
length?: number;
}): Promise&lt;ReadOut&gt;
从流文件读取数据,使用Promise异步回调。 从流文件读取数据,使用Promise异步回调。
...@@ -3143,11 +3085,7 @@ read(buffer: ArrayBuffer, options?: { ...@@ -3143,11 +3085,7 @@ read(buffer: ArrayBuffer, options?: {
### read<sup>7+</sup> ### read<sup>7+</sup>
read(buffer: ArrayBuffer, options: { read(buffer: ArrayBuffer, options: { position?: number; offset?: number; length?: number; }, callback: AsyncCallback&lt;ReadOut&gt;): void
position?: number;
offset?: number;
length?: number;
}, callback: AsyncCallback&lt;ReadOut&gt;): void
从流文件读取数据,使用callback异步回调。 从流文件读取数据,使用callback异步回调。
...@@ -3177,11 +3115,7 @@ read(buffer: ArrayBuffer, options: { ...@@ -3177,11 +3115,7 @@ read(buffer: ArrayBuffer, options: {
### readSync<sup>7+</sup> ### readSync<sup>7+</sup>
readSync(buffer: ArrayBuffer, options?: { readSync(buffer: ArrayBuffer, options?: { position?: number; offset?: number; length?: number; }): number
position?: number;
offset?: number;
length?: number;
}): number
以同步方法从流文件读取数据。 以同步方法从流文件读取数据。
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册