Loading...
Searching...
No Matches
InputStream.hpp
#pragma once
#include <cstdint>
namespace mce::io::stream {
class InputStream {
public:
virtual ~InputStream() = 0;
virtual size_t read(void* buffer, size_t size) = 0;
virtual size_t seek(size_t position) = 0;
virtual size_t tell() = 0;
virtual size_t getSize() = 0;
};
}
mce::io::stream::InputStream
Definition InputStream.hpp:6
mce::io::stream::InputStream::tell
virtual size_t tell()=0
mce::io::stream::InputStream::seek
virtual size_t seek(size_t position)=0
Changes the current position the stream is reading.
mce::io::stream::InputStream::read
virtual size_t read(void *buffer, size_t size)=0
Reads from the input stream.
mce::io::stream::InputStream::getSize
virtual size_t getSize()=0