ewasm / design

Ewasm Design Overview and Specification
Apache License 2.0
1.02k stars 125 forks source link

Generic buffer API #181

Open axic opened 5 years ago

axic commented 5 years ago

Primea has introduced a generic buffer API where each buffer is referred to by an index and helpers exists to query the size and retrieve the buffer.

We could consider to use this instead of the collection of calldata*, retundata*, code*, externalcode*. We'd still need to have a way to retrieve a message index, for example a helper for calldatamessageindex or it could be passed on to the function. For return data an index could be returned by call*.