aboutsummaryrefslogtreecommitdiffstats
path: root/Types.h
diff options
context:
space:
mode:
authorChristian <c@ethdev.com>2015-01-09 07:58:32 +0800
committerChristian <c@ethdev.com>2015-01-10 01:20:51 +0800
commitfe16922087ef41f157ef8661a9295aa1539796a5 (patch)
treee11a1111c08a862c72f9de92b2d47f6d81ea3bcd /Types.h
parent396f638ce19206144ce32dcf3926fc13fa9a89b7 (diff)
downloaddexon-solidity-fe16922087ef41f157ef8661a9295aa1539796a5.tar.gz
dexon-solidity-fe16922087ef41f157ef8661a9295aa1539796a5.tar.zst
dexon-solidity-fe16922087ef41f157ef8661a9295aa1539796a5.zip
Padding for ABI types.
Diffstat (limited to 'Types.h')
-rw-r--r--Types.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/Types.h b/Types.h
index 8c800fa0..69f69ef6 100644
--- a/Types.h
+++ b/Types.h
@@ -115,7 +115,8 @@ public:
virtual bool operator!=(Type const& _other) const { return !this->operator ==(_other); }
/// @returns number of bytes used by this type when encoded for CALL, or 0 if the encoding
- /// is not a simple big-endian encoding or the type cannot be stored on the stack.
+ /// is not a simple big-endian encoding or the type cannot be stored in calldata.
+ /// Note that irrespective of this size, each calldata element is padded to a multiple of 32 bytes.
virtual unsigned getCalldataEncodedSize() const { return 0; }
/// @returns number of bytes required to hold this value in storage.
/// For dynamically "allocated" types, it returns the size of the statically allocated head,