1
// Copyright © 2017-2020 Trust Wallet.
2
//
3
// This file is part of Trust. The full Trust copyright notice, including
4
// terms governing use, modification, and redistribution, is contained in the
5
// file LICENSE at the root of the source code distribution tree.
6

7
#pragma once
8

9
#include "../Data.h"
10
#include "../BinaryCoding.h"
11
#include "ReadData.h"
12

13
namespace TW::NEO {
14

15 1
class ISerializable {
16
  public:
17 1
    virtual ~ISerializable() {}
18
    virtual int64_t size() const = 0;
19
    virtual Data serialize() const = 0;
20
    virtual void deserialize(const Data& data, int initial_pos = 0) = 0;
21
};
22

23
} // namespace TW::NEO

Read our documentation on viewing source code .

Loading