IMFByteStream interface (mfobjects.h)
Represents a byte stream from some data source, which might be a local file, a network file, or some other source. The IMFByteStream interface supports the typical stream operations, such as reading, writing, and seeking.
The IMFByteStream interface inherits from the IUnknown interface. IMFByteStream also has these types of members:
The IMFByteStream interface has these methods.
Begins an asynchronous read operation from the stream.
Begins an asynchronous write operation to the stream.
Closes the stream and releases any resources associated with the stream, such as sockets or file handles. This method also cancels any pending asynchronous I/O requests.
Completes an asynchronous read operation.
Completes an asynchronous write operation.
Clears any internal buffers used by the stream. If you are writing to the stream, the buffered data is written to the underlying file or device.
Retrieves the characteristics of the byte stream.
Retrieves the current read or write position in the stream.
Retrieves the length of the stream.
Queries whether the current position has reached the end of the stream.
Reads data from the stream.
Moves the current position in the stream by a specified offset.
Sets the current read or write position.
Sets the length of the stream.
Writes data to the stream.
The following functions return IMFByteStream pointers for local files:
Some implementations of this interface also expose one or more of the following interfaces:
- Windows XP with Service Pack 2 (SP2) and later.
- Windows XP Media Center Edition 2005 with KB900325 (Windows XP Media Center Edition 2005) and KB925766 (October 2006 Update Rollup for Windows XP Media Center Edition) installed.
|Minimum supported client||Windows Vista [desktop apps | UWP apps]|
|Minimum supported server||Windows Server 2008 [desktop apps | UWP apps]|
|Header||mfobjects.h (include Mfidl.h)|