summaryrefslogtreecommitdiff
path: root/platform/efi/efi_resolver/include/GuidRenderer.h
blob: 30bd9126d90f47fdb7208efc49d5861e52990727 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#pragma once

#include "binaryninjaapi.h"
#include <iomanip>

using namespace BinaryNinja;
using namespace std;

class EfiGuidRenderer : public BinaryNinja::DataRenderer {
    EfiGuidRenderer() = default;

public:
    bool IsValidForData(BinaryView*, uint64_t address, Type*,
        vector<pair<Type*, size_t>>&) override;

    vector<DisassemblyTextLine> GetLinesForData(
        BinaryView*, uint64_t address, Type*, const vector<InstructionTextToken>& prefix,
        size_t width, vector<pair<Type*, size_t>>&) override;

    static void Register();
};