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

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

Open
conr2d opened this issue Sep 7, 2021 · 0 comments
Open
Labels
good first issue Good for newcomers

Comments

@conr2d
Copy link
Member

conr2d commented Sep 7, 2021

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

@conr2d conr2d added the good first issue Good for newcomers label Sep 7, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant