Loading...
Searching...
No Matches
MemoryInputStream.hpp
Go to the documentation of this file.
7// In no event will the authors be held liable for any damages arising from the use of this software.
Implementation of input stream based on a memory chunk.
Definition MemoryInputStream.hpp:47
std::optional< std::size_t > read(void *data, std::size_t size) override
Read data from the stream.
MemoryInputStream(const void *data, std::size_t sizeInBytes)
Construct the stream from its data.
std::optional< std::size_t > seek(std::size_t position) override
Change the current reading position.
std::optional< std::size_t > getSize() override
Return the size of the stream.
std::optional< std::size_t > tell() override
Get the current reading position in the stream.
Definition AudioResource.hpp:36