#include <FileStream.hpp>
◆ AddCopy()
◆ Close()
| void Faro::DataStream::Close |
( |
| ) |
|
|
inherited |
Close the stream. This also releases it from memory.
◆ Destroy()
| void Faro::DataStream::Destroy |
( |
| ) |
|
|
overrideprotectedvirtualinherited |
Run the destruction logic of this class. This also frees its memory.
- Warning
- When overriding, the super call must be performed last
Reimplemented from Faro::IObject.
Reimplemented in Faro::DataStreamCopy.
◆ Init()
| void Faro::IObject::Init |
( |
| ) |
|
|
virtualinherited |
Run the initialization logic of this object. Should be overriden by deriving classes.
Reimplemented in Faro::DataStreamCopy, Faro::IGraphicsAdapterChild, Faro::GraphicsPipeline, Faro::GraphicsSemaphore, Faro::GraphicsBufferVK, Faro::GraphicsCommandListVK, Faro::GraphicsCommandListVK, Faro::GraphicsFenceVK, Faro::GraphicsFenceVK, Faro::GraphicsPipelineVK, Faro::GraphicsPipelineVK, Faro::GraphicsSemaphoreVK, and Faro::GraphicsSemaphoreVK.
◆ IsOpen()
Check if the file stream was successfully opened.
- Returns
- true The stream is open
-
false The stream is not open
◆ OpenCopy()
◆ Read() [1/3]
template<typename T >
| T Faro::DataStream::Read |
( |
| ) |
|
|
inlineinherited |
Read en element from the stream.
- Template Parameters
-
- Returns
- T Element that was read
◆ Read() [2/3]
template<typename T >
| uint32 Faro::DataStream::Read |
( |
T * |
destination, |
|
|
uint32 |
elementCount |
|
) |
| |
|
inlineinherited |
Read data from the stream.
- Template Parameters
-
- Parameters
-
| destination | Destination memory. This must be a valid pointer. |
| elementCount | Amount of elements to read |
- Returns
- uint32 Amount of elements read
◆ Read() [3/3]
| virtual uint32 Faro::DataStream::Read |
( |
void * |
destination, |
|
|
uint16 |
elementSize, |
|
|
uint32 |
elementCount |
|
) |
| |
|
pure virtualinherited |
Read data from the stream.
- Parameters
-
| destination | Destination memory. This must be a valid pointer. |
| elementSize | Size of a single element |
| elementCount | Amount of elements to read |
- Returns
- uint32 Amount of bytes read
Implemented in Faro::DataStreamCopy.
◆ ReadToArray()
| Array< T > Faro::DataStream::ReadToArray |
( |
| ) |
|
|
inlineinherited |
Read the data to an array of elements.
- Template Parameters
-
- Returns
- Array<T> Array of elements read from the stream
◆ ReadToString()
| String Faro::DataStream::ReadToString |
( |
| ) |
|
|
inherited |
Read the data to a stream.
- Returns
- String String read from the stream
◆ RemoveCopy()
◆ Seek()
Move the position relative to the specified origin.
- Parameters
-
| origin | Start point of the seeking operation |
| offset | Amount of bytes to seek relative to the origin |
Implemented in Faro::DataStreamCopy.
◆ Size()
Get the byte-size of this stream.
- Returns
- uint32 Amount of bytes in this stream
Implemented in Faro::DataStreamCopy.
◆ Tell()
Get the current position of the stream.
- Returns
- uint32 Current position
Implemented in Faro::DataStreamCopy.
◆ Write() [1/3]
| uint32 Faro::DataStream::Write |
( |
T * |
source, |
|
|
uint32 |
elementCount |
|
) |
| |
|
inlineinherited |
Write data to the stream.
- Template Parameters
-
- Parameters
-
| source | Source memory |
| elementCount | Amount of elements to write |
- Returns
- uint32 Amount of elements written
◆ Write() [2/3]
| void Faro::DataStream::Write |
( |
T |
value | ) |
|
|
inlineinherited |
Write an element to the stream.
- Template Parameters
-
- Parameters
-
◆ Write() [3/3]
Write data to the stream.
- Parameters
-
| source | Source memory |
| elementSize | Size of a single element |
| elementCount | Amount of elements to write |
- Returns
- uint32 Amount of bytes written
Implemented in Faro::DataStreamCopy.
◆ copies
| uint32 Faro::DataStream::copies = 0 |
|
protectedinherited |
The documentation for this class was generated from the following file:
- /github/workspace/Source/Engine/Platform/PlatformBase/Source/FileStream.hpp