diff --git a/en/native_sdk/resmgr/raw_file.h b/en/native_sdk/resmgr/raw_file.h index 7b4de7a9707913de749209808fcc334c56118a36..37fc4849c4139a3780e3b6551e518ae1967030c7 100644 --- a/en/native_sdk/resmgr/raw_file.h +++ b/en/native_sdk/resmgr/raw_file.h @@ -88,7 +88,7 @@ typedef struct { * @since 8 * @version 1.0 */ -int OH_ResourceManager_ReadRawFile(const RawFile *rawFile, void *buf, int length); +int OH_ResourceManager_ReadRawFile(const RawFile *rawFile, void *buf, size_t length); /** * @brief Seeks for the data read/write position in the rawfile based on the specified offset. diff --git a/zh-cn/native_sdk/resmgr/raw_file.h b/zh-cn/native_sdk/resmgr/raw_file.h index 4d7bdf90aec98f4065ffedd9a062d0e7379a2b04..f817c2e57a11233957915555978f45132677ed29 100644 --- a/zh-cn/native_sdk/resmgr/raw_file.h +++ b/zh-cn/native_sdk/resmgr/raw_file.h @@ -88,7 +88,7 @@ typedef struct { * @since 8 * @version 1.0 */ -int OH_ResourceManager_ReadRawFile(const RawFile *rawFile, void *buf, int length); +int OH_ResourceManager_ReadRawFile(const RawFile *rawFile, void *buf, size_t length); /** * @brief 基于指定的offset,在rawfile文件内搜索读写数据的位置