#include <IMemoryStreamData.h>
|
| enum | { kDefaultIID = IID_IMEMORYSTREAMDATA } |
| |
Data interface for controlling memory-based streams
- See Also
- StreamUtil
| virtual IXferBytes* IMemoryStreamData::GetXferBytes | ( | | ) | const |
| pure virtual |
Return a pointer to the associated XferBytes object.
- Returns
- A pointer to the current XferBytes object, or nil.
| virtual bool16 IMemoryStreamData::IsOwnedXferBytes | ( | | ) | const |
| pure virtual |
Determine whether we are responsible for the lifetime of the current XferBytes object, if any.
- Returns
- kTrue if we are responsible, kFalse if we are not (or if there is no associated XferBytes object).
| virtual void IMemoryStreamData::Set | ( | IXferBytes * | underlyingXferBytes, | | | bool16 | takeOwnership = kFalse | | ) | | |
| pure virtual |
Set the stream's associated XferBytes object. If the XferBytes object was dynamically allocated, responsibility for its lifetime may be assigned to IMemoryStreamData.
- Parameters
| underlyingXferBytes | IN A pointer to the XferBytes object. |
| takeOwnership | IN kTrue if IMemoryStreamData should take ownership of the XferBytes object, kFalse if not. |