This method of the ISequentialStream interface reads a specified number of bytes from the stream object into memory starting at the current seek pointer.
public int Read(byte buf[], int off, int len);
S_OK -- The data was successfully read from the stream object.
S_FALSE -- The data could not be read from the stream object.
E_PENDING -- Asynchronous storage only: Part or all of the data to be read is currently unavailable.
STG_E_ACCESSDENIED -- The caller does not have sufficient permissions for reading this stream object.
STG_E_INVALIDPOINTER -- One of the pointer values is invalid.
STG_E_REVERTED -- The object has been invalidated by a revert operation above it in the transaction tree.
buf | The buffer that the bytes are read into. |
off | The offset in the stream to begin reading from. |
len | The number of bytes to read. |