Skip to content
This repository was archived by the owner on May 25, 2024. It is now read-only.
This repository was archived by the owner on May 25, 2024. It is now read-only.

Translate std::vector<std::byte> into bytes during ABI generation #7

Description

@conr2d

In EOSIO ABI generation, std::vector<TYPE> is generally translated into TYPE[] that means contiguous repeat of TYPE, but std::vector specialization for uint8_t, int8_t, char, unsigned char are treated special by being translated into bytes that accepts hex string and convert it into byte sequence.

Since c++17, new type std::byte is supported for storing & accessing byte. Let's translate std::vector<std::byte> into bytes also.

You can start from:
https://github.com/turnpike/blanc/blob/bebefb3d/tools/include/eosio/gen.hpp#L533-L534

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions