diff options
author | chriseth <chris@ethereum.org> | 2017-08-07 22:46:09 +0800 |
---|---|---|
committer | chriseth <chris@ethereum.org> | 2017-08-14 18:44:25 +0800 |
commit | 4630b3315aa249508036998e4ed122b5ba260ba1 (patch) | |
tree | 647c1ca2597be38bc4231eb083440606949d13af /libsolidity/codegen/CompilerUtils.h | |
parent | 42fe8a2cb1530a557365d47878144c05687b859b (diff) | |
download | dexon-solidity-4630b3315aa249508036998e4ed122b5ba260ba1.tar dexon-solidity-4630b3315aa249508036998e4ed122b5ba260ba1.tar.gz dexon-solidity-4630b3315aa249508036998e4ed122b5ba260ba1.tar.bz2 dexon-solidity-4630b3315aa249508036998e4ed122b5ba260ba1.tar.lz dexon-solidity-4630b3315aa249508036998e4ed122b5ba260ba1.tar.xz dexon-solidity-4630b3315aa249508036998e4ed122b5ba260ba1.tar.zst dexon-solidity-4630b3315aa249508036998e4ed122b5ba260ba1.zip |
Interface for new ABI encoder.
Diffstat (limited to 'libsolidity/codegen/CompilerUtils.h')
-rw-r--r-- | libsolidity/codegen/CompilerUtils.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/libsolidity/codegen/CompilerUtils.h b/libsolidity/codegen/CompilerUtils.h index fb169463..09427788 100644 --- a/libsolidity/codegen/CompilerUtils.h +++ b/libsolidity/codegen/CompilerUtils.h @@ -103,6 +103,14 @@ public: bool _encodeAsLibraryTypes = false ); + /// Special case of @a encodeToMemory which assumes that everything is padded to words + /// and dynamic data is not copied in place (i.e. a proper ABI encoding). + void abiEncode( + TypePointers const& _givenTypes, + TypePointers const& _targetTypes, + bool _encodeAsLibraryTypes = false + ); + /// Zero-initialises (the data part of) an already allocated memory array. /// Length has to be nonzero! /// Stack pre: <length> <memptr> |