IMFASFIndexer::GetIndexWriteSpace method (wmcontainer.h)
Retrieves the size, in bytes, of the buffer required to store the completed index.
Syntax
HRESULT GetIndexWriteSpace(
[out] QWORD *pcbIndexWriteSpace
);
Parameters
[out] pcbIndexWriteSpace
Receives the size of the index, in bytes
Return value
The method returns an HRESULT. Possible values include, but are not limited to, those in the following table.
Return code | Description |
---|---|
|
The method succeeded. |
|
The index has not been committed. For more information; see Remarks. |
Remarks
Use this method to get the size of the index and then allocate a buffer big enough to hold it.
The index must be committed with a call toIMFASFIndexer::CommitIndex before calling IMFASFIndexer::GetIndexWriteSpace. If the index is not committed before GetIndexWriteSpace is called, then MF_E_INDEX_NOT_COMMITTED will be returned as a result.
Call IMFASFIndexer::GetCompletedIndex to write the completed index into a media buffer.
You cannot use this method in a reading scenario. You can only use this method when writing indexes.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows Vista [desktop apps only] |
Minimum supported server | Windows Server 2008 [desktop apps only] |
Target Platform | Windows |
Header | wmcontainer.h |
Library | Mfuuid.lib |