mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-06-07 13:28:08 -05:00
19 lines
516 B
C++
19 lines
516 B
C++
#pragma once
|
|
|
|
#include <cstddef>
|
|
#include <cstdint>
|
|
|
|
class ILoadingStream
|
|
{
|
|
public:
|
|
ILoadingStream() = default;
|
|
virtual ~ILoadingStream() = default;
|
|
ILoadingStream(const ILoadingStream& other) = default;
|
|
ILoadingStream(ILoadingStream&& other) noexcept = default;
|
|
ILoadingStream& operator=(const ILoadingStream& other) = default;
|
|
ILoadingStream& operator=(ILoadingStream&& other) noexcept = default;
|
|
|
|
virtual size_t Load(void* buffer, size_t length) = 0;
|
|
virtual int64_t Pos() = 0;
|
|
};
|