#include <Stream.hpp>
◆ AddCopy()
◆ Close()
| void Faro::DataStream::Close |
( |
| ) |
|
|
inherited |
Close the stream. This also releases it from memory.
◆ Destroy()
| void Faro::DataStreamCopy::Destroy |
( |
| ) |
|
|
overrideprotectedvirtual |
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::DataStream.
◆ Init() [1/2]
| void Faro::DataStreamCopy::Init |
( |
| ) |
|
|
overrideprotectedvirtual |
Run the initialization logic of this object. Should be overriden by deriving classes.
Reimplemented from Faro::IObject.
◆ Init() [2/2]
◆ 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]
| uint32 Faro::DataStreamCopy::Read |
( |
void * |
destination, |
|
|
uint16 |
elementSize, |
|
|
uint32 |
elementCount |
|
) |
| |
|
overridevirtual |
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
Implements Faro::DataStream.
◆ 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 |
Implements Faro::DataStream.
◆ Size()
| uint32 Faro::DataStreamCopy::Size |
( |
| ) |
|
|
overridevirtual |
Get the byte-size of this stream.
- Returns
- uint32 Amount of bytes in this stream
Implements Faro::DataStream.
◆ Tell()
| uint32 Faro::DataStreamCopy::Tell |
( |
| ) |
|
|
overridevirtual |
Get the current position of the stream.
- Returns
- uint32 Current position
Implements Faro::DataStream.
◆ 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
Implements Faro::DataStream.
◆ copies
| uint32 Faro::DataStream::copies = 0 |
|
protectedinherited |
The documentation for this class was generated from the following files:
- /github/workspace/Source/Engine/Core/Source/Containers/Stream.hpp
- /github/workspace/Source/Engine/Core/Source/Containers/Stream.cpp