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

11
namespace TW::EOS {
12

13
class Name {
14
public:
15 1
    uint64_t value = 0;
16

17 1
    Name() { }
18
    Name(const std::string& str);
19
    uint64_t toSymbol(char c) const noexcept;
20
    std::string string() const noexcept;
21

22
    void serialize(TW::Data& o) const noexcept;
23
};
24

25
} // namespace TW::EOS

Read our documentation on viewing source code .

Loading