IMFByteStream Interface
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.
Mitglieder
IMFByteStreamSchnittstelle erbt von der IUnknown-Schnittstelle. IMFByteStream umfasst auch die folgenden Typen von Mitgliedern:
- Methoden
Methoden
IMFByteStreamSchnittstelle umfasst die folgenden Methoden.
Methode | Beschreibung |
---|---|
BeginRead | Begins an asynchronous read operation from the stream. |
BeginWrite | Begins an asynchronous write operation to the stream. |
Close | Closes the stream and releases any resources associated with the stream. |
EndRead | Completes an asynchronous read operation. |
EndWrite | Completes an asynchronous write operation. |
Flush | Clears any internal buffers used by the stream. |
GetCapabilities | Retrieves the characteristics of the byte stream. |
GetCurrentPosition | Retrieves the current read or write position in the stream. |
GetLength | Retrieves the length of the stream. |
IsEndOfStream | Queries whether the current position has reached the end of the stream. |
Read | Reads data from the stream. |
Seek | Moves the current position in the stream by a specified offset. |
SetCurrentPosition | Sets the current read or write position. |
SetLength | Sets the length of the stream. |
Write | Writes data to the stream. |
Hinweise
The following functions return IMFByteStream pointers for local files:
A byte stream for a media souce can be opened with read access. A byte stream for an archive media sink should be opened with both read and write access. (Read access may be required, because the archive sink might need to read portions of the file as it writes.)
Some implementations of this interface also expose one or more of the following interfaces:
This interface is available on the following platforms if the Windows Media Format 11 SDK redistributable components are installed:
- Windows XP mit Service Pack 2 (SP2) und höher.
- Windows XP Media Center Edition 2005 with KB900325 (Windows XP Media Center Edition 2005) and KB925766 (Oktober 2006 Updaterollup für Windows XP Media Center Edition) installed.
Anforderungen
Mindestens unterstützter Client |
Windows Vista |
Mindestens unterstützter Server |
Windows Server 2008 |
Header |
Mfobjects.h (include Mfidl.h) |
Bibliothek |
Mfuuid.lib |