同步操作将从 OpenHarmony/docs 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
Related Modules:
Description:
Defines the function for reading stream data.
Since:
1.0
Version:
1.0
ReadData )(void *handle, uint8_t *data, int32_t size, int32_t timeOutMs, DataFlags *flags) |
Reads data from streams, save the data to the buffer pointed by data with the specified size, and returns the size of the read data and type. |
GetReadableSize )(const void *handle) |
|
int32_t(* BufferStream::GetReadableSize) (const void *[handle](BufferStream.md#ae2019a77aba73fa96d5a716155c7fb7f))
Description:
Obtains the size of data that can be read.
Before reading data, you should call this function to check whether there is data to read.
Parameters:
handle | Indicates the pointer to the context handle. |
Returns:
Returns the size of the read data.
void* BufferStream::handle
Description:
Context handle
int32_t(* BufferStream::ReadData) (void *[handle](BufferStream.md#ae2019a77aba73fa96d5a716155c7fb7f), uint8_t *data, int32_t size, int32_t timeOutMs, [DataFlags](Format.md#gacff079fdf8427c743f9197ea5be33a7f) *flags)
Description:
Reads data from streams, save the data to the buffer pointed by data with the specified size, and returns the size of the read data and type.
Parameters:
handle | Indicates the pointer to the context handle. |
data | Indicates the pointer to the buffer to store the read data. The memory is allocated by the caller. |
size | Indicates the size of the available buffer memory. |
timeOutMs | Indicates read operation wait time. The value 0 means no wait time. |
flags | Indicates the pointer to the type of the read data, see DataFlags. |
Returns:
Returns the size of the read data.
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。