From 62401f64535141f0d57baf4410b673062d419306 Mon Sep 17 00:00:00 2001 From: zhou-liting125 Date: Tue, 22 Feb 2022 10:27:21 +0800 Subject: [PATCH] Add interface instructions Signed-off-by: zhou-liting125 --- api/@ohos.rpc.d.ts | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/api/@ohos.rpc.d.ts b/api/@ohos.rpc.d.ts index 97576f4438..376212c6b7 100644 --- a/api/@ohos.rpc.d.ts +++ b/api/@ohos.rpc.d.ts @@ -314,6 +314,8 @@ declare namespace rpc { * returns {@code false} otherwise. * @throws ParcelException When capacity in this parcel is insufficient, * exception message: {@link ParcelException#NO_CAPACITY_ERROR}. + * @Note Ensure that the data type and size comply with the interface definition. + * Otherwise,data may be truncated. * @since 7 */ writeShortArray(shortArray: number[]): boolean; @@ -325,6 +327,8 @@ declare namespace rpc { * returns {@code false} otherwise. * @throws ParcelException When capacity in this parcel is insufficient, * exception message: {@link ParcelException#NO_CAPACITY_ERROR}. + * @Note Ensure that the data type and size comply with the interface definition. + * Otherwise,data may be truncated. * @since 7 */ writeIntArray(intArray: number[]): boolean; @@ -336,6 +340,8 @@ declare namespace rpc { * returns {@code false} otherwise. * @throws ParcelException When capacity in this parcel is insufficient, * exception message: {@link ParcelException#NO_CAPACITY_ERROR}. + * @Note Ensure that the data type and size comply with the interface definition. + * Otherwise,data may be truncated. * @since 7 */ writeLongArray(longArray: number[]): boolean; @@ -347,6 +353,8 @@ declare namespace rpc { * returns {@code false} otherwise. * @throws ParcelException When capacity in this parcel is insufficient, * exception message: {@link ParcelException#NO_CAPACITY_ERROR}. + * @Note Ensure that the data type and size comply with the interface definition. + * Otherwise,data may be truncated. * @since 7 */ writeFloatArray(floatArray: number[]): boolean; @@ -358,6 +366,8 @@ declare namespace rpc { * returns {@code false} otherwise. * @throws ParcelException When capacity in this parcel is insufficient, * exception message: {@link ParcelException#NO_CAPACITY_ERROR}. + * @Note Ensure that the data type and size comply with the interface definition. + * Otherwise,data may be truncated. * @since 7 */ writeDoubleArray(doubleArray: number[]): boolean; @@ -369,6 +379,8 @@ declare namespace rpc { * returns {@code false} otherwise. * @throws ParcelException When capacity in this parcel is insufficient, * exception message: {@link ParcelException#NO_CAPACITY_ERROR}. + * @Note Ensure that the data type and size comply with the interface definition. + * Otherwise,data may be truncated. * @since 7 */ writeBooleanArray(booleanArray: boolean[]): boolean; @@ -380,6 +392,8 @@ declare namespace rpc { * returns {@code false} otherwise. * @throws ParcelException When capacity in this parcel is insufficient, * exception message: {@link ParcelException#NO_CAPACITY_ERROR}. + * @Note Ensure that the data type and size comply with the interface definition. + * Otherwise,data may be truncated. * @since 7 */ writeCharArray(charArray: number[]): boolean; @@ -391,6 +405,8 @@ declare namespace rpc { * returns {@code false} otherwise. * @throws ParcelException When capacity in this parcel is insufficient, * exception message: {@link ParcelException#NO_CAPACITY_ERROR}. + * @Note Ensure that the data type and size comply with the interface definition. + * Otherwise,data may be truncated. * @since 7 */ writeStringArray(stringArray: string[]): boolean; -- Gitee