aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity/codegen/CompilerUtils.h
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2017-08-07 22:46:09 +0800
committerchriseth <chris@ethereum.org>2017-08-14 18:44:25 +0800
commit4630b3315aa249508036998e4ed122b5ba260ba1 (patch)
tree647c1ca2597be38bc4231eb083440606949d13af /libsolidity/codegen/CompilerUtils.h
parent42fe8a2cb1530a557365d47878144c05687b859b (diff)
downloaddexon-solidity-4630b3315aa249508036998e4ed122b5ba260ba1.tar.gz
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.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>