Interface for new ABI encoder.

This commit is contained in:
chriseth
2017-08-14 12:44:25 +02:00
parent 42fe8a2cb1
commit 4630b3315a
2 changed files with 40 additions and 0 deletions
+8
View File
@@ -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>