Reads a specified number of bytes from the
LeadStream object and writes the data into the specified WinRT IBuffer.



'Declaration
Overloads Function Read( _
ByVal As IBuffer, _
ByVal As Integer, _
ByVal As UInteger _
) As Integer
'Usage
Dim instance As ILeadStream
Dim buffer As IBuffer
Dim bufferIndex As Integer
Dim count As UInteger
Dim value As Integer
value = instance.Read(buffer, bufferIndex, count)
Parameters
- buffer
- The buffer to write the data into.
- bufferIndex
- Index into where reading begins.
- count
- The maximum number of bytes to read.
Return Value
The total number of bytes read into the buffer. The result value can be less than the number of bytes requested if the number of bytes currently available is less than the requested number, or it can be 0 (zero) if the end of the stream has been reached