Serial Framework C++ Edition

◆ Clone()

virtual HRESULT STDMETHODCALLTYPE Clone ( IStream **  ppstm)
overridevirtual

The method creates a new stream object with its own seek pointer that references the same bytes as the original stream.

Parameters
ppstmWhen successful, pointer to the location of an IStream pointer to the new stream object. If an error occurs, this parameter is NULL.
Returns
S_OK if operation completed with success.