aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity/codegen/CompilerUtils.h
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2017-08-14 23:04:00 +0800
committerGitHub <noreply@github.com>2017-08-14 23:04:00 +0800
commit2411f5d839cd784ef31e076812787b2e1934ca9f (patch)
tree1118f62a4a984c2ef81e418b3e57a44753155d6a /libsolidity/codegen/CompilerUtils.h
parent0a04a35a2e02437ae038af41c947b3e829946bca (diff)
parent63b556b2063acfe84f16973bd5b0429d70f7fb93 (diff)
downloaddexon-solidity-2411f5d839cd784ef31e076812787b2e1934ca9f.tar
dexon-solidity-2411f5d839cd784ef31e076812787b2e1934ca9f.tar.gz
dexon-solidity-2411f5d839cd784ef31e076812787b2e1934ca9f.tar.bz2
dexon-solidity-2411f5d839cd784ef31e076812787b2e1934ca9f.tar.lz
dexon-solidity-2411f5d839cd784ef31e076812787b2e1934ca9f.tar.xz
dexon-solidity-2411f5d839cd784ef31e076812787b2e1934ca9f.tar.zst
dexon-solidity-2411f5d839cd784ef31e076812787b2e1934ca9f.zip
Merge pull request #2704 from ethereum/newEncoder
New ABI encoder
Diffstat (limited to 'libsolidity/codegen/CompilerUtils.h')
-rw-r--r--libsolidity/codegen/CompilerUtils.h8
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>