aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity/codegen/CompilerUtils.h
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2017-09-01 19:59:21 +0800
committerchriseth <chris@ethereum.org>2017-11-30 00:08:44 +0800
commitbdc1ff8ec71bdf96e0706c951dd92def3aee4aa2 (patch)
treebcc4a52df3ea9487e56b1bd32f7fce881fb33970 /libsolidity/codegen/CompilerUtils.h
parent7c69d88f937324b64ed8825f9e611e417421434b (diff)
downloaddexon-solidity-bdc1ff8ec71bdf96e0706c951dd92def3aee4aa2.tar.gz
dexon-solidity-bdc1ff8ec71bdf96e0706c951dd92def3aee4aa2.tar.zst
dexon-solidity-bdc1ff8ec71bdf96e0706c951dd92def3aee4aa2.zip
ABI decoder.
Diffstat (limited to 'libsolidity/codegen/CompilerUtils.h')
-rw-r--r--libsolidity/codegen/CompilerUtils.h7
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>