7 #ifndef NAZARA_MEMORYSTREAM_HPP 8 #define NAZARA_MEMORYSTREAM_HPP 10 #include <Nazara/Prerequesites.hpp> 11 #include <Nazara/Core/Stream.hpp> 28 bool EndOfStream()
const override;
31 inline const ByteArray& GetBuffer()
const;
32 UInt64 GetCursorPos()
const override;
33 UInt64 GetSize()
const override;
36 bool SetCursorPos(UInt64 offset)
override;
42 void FlushStream()
override;
43 std::size_t ReadBlock(
void* buffer, std::size_t size)
override;
44 std::size_t WriteBlock(
const void* buffer, std::size_t size)
override;
51 #include <Nazara/Core/MemoryStream.inl> 53 #endif // NAZARA_MEMORYSTREAM_HPP TODO: Inherit SoundEmitter from Node.
Definition: Algorithm.hpp:12
Core class that represents an array of bytes.
Definition: ByteArray.hpp:18
Core class that represents a stream.
Definition: Stream.hpp:19
Constructs a MemoryStream object by default.
Definition: MemoryStream.hpp:17