# BufferStream ## **Overview** **Related Modules:** [Format](Format.md) **Description:** Defines the function for reading stream data. **Since:** 1.0 **Version:** 1.0 ## **Summary** ## Data Fields
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) |
|
handle | Indicates the pointer to the context handle. |
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. |