mirror of
https://github.com/boykopovar/AnyPS5.git
synced 2026-11-03 12:57:27 +00:00
22 lines
382 B
C++
22 lines
382 B
C++
#ifndef CODEGEN_IINSTRUCTIONDECODER_HPP
|
|
#define CODEGEN_IINSTRUCTIONDECODER_HPP
|
|
|
|
#include <codegen/CodegenTypes.hpp>
|
|
#include <cstdint>
|
|
|
|
namespace Codegen {
|
|
|
|
class IInstructionDecoder {
|
|
public:
|
|
virtual ~IInstructionDecoder() = default;
|
|
|
|
[[nodiscard]] virtual std::size_t Decode(
|
|
const std::uint8_t* data,
|
|
std::size_t available
|
|
) const = 0;
|
|
};
|
|
|
|
}
|
|
|
|
#endif
|