diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2017-11-30 04:02:32 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-30 04:02:32 +0800 |
commit | 07591478dd78dee56c5b83a62a314e984c3a83a6 (patch) | |
tree | 0cfaaea815595dac131aebc27e616e8f786b0da5 /libsolidity/codegen/CompilerUtils.h | |
parent | aebf72c2c5315674af18e6016b6c85ce0e63fb31 (diff) | |
parent | 9d8e3ff395006c0c6285f70c13bd470e9374bda3 (diff) | |
download | dexon-solidity-07591478dd78dee56c5b83a62a314e984c3a83a6.tar dexon-solidity-07591478dd78dee56c5b83a62a314e984c3a83a6.tar.gz dexon-solidity-07591478dd78dee56c5b83a62a314e984c3a83a6.tar.bz2 dexon-solidity-07591478dd78dee56c5b83a62a314e984c3a83a6.tar.lz dexon-solidity-07591478dd78dee56c5b83a62a314e984c3a83a6.tar.xz dexon-solidity-07591478dd78dee56c5b83a62a314e984c3a83a6.tar.zst dexon-solidity-07591478dd78dee56c5b83a62a314e984c3a83a6.zip |
Merge pull request #2863 from ethereum/structDecoder
ABI decoder
Diffstat (limited to 'libsolidity/codegen/CompilerUtils.h')
-rw-r--r-- | libsolidity/codegen/CompilerUtils.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libsolidity/codegen/CompilerUtils.h b/libsolidity/codegen/CompilerUtils.h index ad3989ad..3cde281b 100644 --- a/libsolidity/codegen/CompilerUtils.h +++ b/libsolidity/codegen/CompilerUtils.h @@ -146,6 +146,13 @@ public: bool _encodeAsLibraryTypes = false ); + /// Decodes data from ABI encoding into internal encoding. If @a _fromMemory is set to true, + /// the data is taken from memory instead of from calldata. + /// Can allocate memory. + /// Stack pre: <source_offset> + /// Stack post: <value0> <value1> ... <valuen> + void abiDecodeV2(TypePointers const& _parameterTypes, bool _fromMemory = false); + /// Zero-initialises (the data part of) an already allocated memory array. /// Length has to be nonzero! /// Stack pre: <length> <memptr> |