readToBuffer

Caution Read the entire contents of the channel into a new buffer and return it. This function will suspend until the channel is exhausted and no bytes remain OR the channel cancelled

Return

an SdkBuffer containing all the data read from the channel