Interface IMFByteStream
Namespace: MediaFoundation
Assembly: MediaFoundation.dll
Syntax
[InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
[Guid("AD4C1B00-4BF7-422F-9175-756693D9130D")]
public interface IMFByteStream
Methods
BeginRead(IntPtr, Int32, IMFAsyncCallback, Object)
Declaration
HResult BeginRead(IntPtr pb, int cb, IMFAsyncCallback pCallback, object pUnkState)
Parameters
System.IntPtr
pb
|
System.Int32
cb
|
IMFAsyncCallback
pCallback
|
System.Object
pUnkState
|
Returns
HResult
|
BeginWrite(IntPtr, Int32, IMFAsyncCallback, Object)
Declaration
HResult BeginWrite(IntPtr pb, int cb, IMFAsyncCallback pCallback, object pUnkState)
Parameters
System.IntPtr
pb
|
System.Int32
cb
|
IMFAsyncCallback
pCallback
|
System.Object
pUnkState
|
Returns
HResult
|
Close()
EndRead(IMFAsyncResult, out Int32)
Declaration
HResult EndRead(IMFAsyncResult pResult, out int pcbRead)
Parameters
IMFAsyncResult
pResult
|
System.Int32
pcbRead
|
Returns
HResult
|
EndWrite(IMFAsyncResult, out Int32)
Declaration
HResult EndWrite(IMFAsyncResult pResult, out int pcbWritten)
Parameters
IMFAsyncResult
pResult
|
System.Int32
pcbWritten
|
Returns
HResult
|
Flush()
GetCapabilities(out MFByteStreamCapabilities)
Declaration
HResult GetCapabilities(out MFByteStreamCapabilities pdwCapabilities)
Parameters
MFByteStreamCapabilities
pdwCapabilities
|
Returns
HResult
|
GetCurrentPosition(out Int64)
Declaration
HResult GetCurrentPosition(out long pqwPosition)
Parameters
System.Int64
pqwPosition
|
Returns
HResult
|
GetLength(out Int64)
IsEndOfStream(out Boolean)
Declaration
HResult IsEndOfStream(out bool pfEndOfStream)
Parameters
System.Boolean
pfEndOfStream
|
Returns
HResult
|
Read(IntPtr, Int32, out Int32)
Declaration
HResult Read(IntPtr pb, int cb, out int pcbRead)
Parameters
System.IntPtr
pb
|
System.Int32
cb
|
System.Int32
pcbRead
|
Returns
HResult
|
Seek(MFByteStreamSeekOrigin, Int64, MFByteStreamSeekingFlags, out Int64)
Declaration
HResult Seek(MFByteStreamSeekOrigin SeekOrigin, long llSeekOffset, MFByteStreamSeekingFlags dwSeekFlags, out long pqwCurrentPosition)
Parameters
MFByteStreamSeekOrigin
SeekOrigin
|
System.Int64
llSeekOffset
|
MFByteStreamSeekingFlags
dwSeekFlags
|
System.Int64
pqwCurrentPosition
|
Returns
HResult
|
SetCurrentPosition(Int64)
Declaration
HResult SetCurrentPosition(long qwPosition)
Parameters
System.Int64
qwPosition
|
Returns
HResult
|
SetLength(Int64)
Write(IntPtr, Int32, out Int32)
Declaration
HResult Write(IntPtr pb, int cb, out int pcbWritten)
Parameters
System.IntPtr
pb
|
System.Int32
cb
|
System.Int32
pcbWritten
|
Returns
HResult
|