# BufferStream - [Overview](#section939158420165630) - [Summary](#section1466875558165630) - [Data Fields](#pub-attribs) - [Details](#section498541529165630) - [Field](#section151440637165630) - [GetReadableSize](#a24e47ffeb7e9c2a8e01f83ffb3a16407) - [handle](#ae2019a77aba73fa96d5a716155c7fb7f) - [ReadData](#af0c4387f21bba2c1f02a5310daa95a00) ## **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. |