Diligent Engine API Reference
Public Member Functions | List of all members
Diligent::BasicFileStream Class Reference

Basic file stream implementation. More...

Inheritance diagram for Diligent::BasicFileStream:
Diligent::ObjectBase< IFileStream, IMemoryAllocator > Diligent::RefCountedObject< IFileStream, IMemoryAllocator > Diligent::IFileStream Diligent::IObject

Public Member Functions

virtual void QueryInterface (const Diligent::INTERFACE_ID &IID, IObject **ppInterface) override
 Queries the specific interface. More...
 
virtual void Read (Diligent::IDataBlob *pData) override
 Reads data from the stream.
 
virtual bool Read (void *Data, size_t BufferSize) override
 Reads data from the stream.
 
virtual bool Write (const void *Data, size_t Size) override
 Writes data to the stream.
 
- Public Member Functions inherited from Diligent::RefCountedObject< IFileStream, IMemoryAllocator >
virtual IReferenceCountersGetReferenceCounters () const override final
 
virtual Atomics::Long AddRef () override
 
virtual Atomics::Long Release () override
 

Detailed Description

Basic file stream implementation.

Member Function Documentation

virtual void Diligent::BasicFileStream::QueryInterface ( const Diligent::INTERFACE_ID IID,
IObject **  ppInterface 
)
overridevirtual

Queries the specific interface.

Parameters
[in]IID- Unique identifier of the requested interface.
[out]ppInterface- Memory address where the pointer to the requested interface will be written. If the interface is not supported, null pointer will be returned.
Remarks
The method increments the number of strong references by 1. The interface must be released by a call to Release() method when it is no longer needed.

Reimplemented from Diligent::ObjectBase< IFileStream, IMemoryAllocator >.