Serial Framework C++ Edition

◆ Read()

virtual HRESULT STDMETHODCALLTYPE Read ( void *  pv,
ULONG  cb,
ULONG *  pcbRead 
)
overridevirtual

The method reads a specified number of bytes from the stream object into memory, starting at the current seek pointer.

Parameters
pvA pointer to the buffer which the stream data is read into.
cbThe number of bytes of data to read from the stream object.
pcbReadA pointer to a ULONG variable that receives the actual number of bytes read from the stream object. Note: The number of bytes read may be zero.
Returns
S_OK if operation completed with success.