aboutsummaryrefslogtreecommitdiffstats
path: root/CompilerUtils.h
diff options
context:
space:
mode:
authorChristian <c@ethdev.com>2015-02-15 07:11:51 +0800
committerChristian <c@ethdev.com>2015-02-17 02:25:27 +0800
commit1f6e3651362bdcdaa39773156875c36053d5f6be (patch)
treecf41f43c2b4e46b1859654ad9884e64f89d36015 /CompilerUtils.h
parentf7ba85e0ecb6f690d62bcf66e0f0525f2ed97337 (diff)
downloaddexon-solidity-1f6e3651362bdcdaa39773156875c36053d5f6be.tar.gz
dexon-solidity-1f6e3651362bdcdaa39773156875c36053d5f6be.tar.zst
dexon-solidity-1f6e3651362bdcdaa39773156875c36053d5f6be.zip
Move code to loadFromMemory.
Diffstat (limited to 'CompilerUtils.h')
-rw-r--r--CompilerUtils.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/CompilerUtils.h b/CompilerUtils.h
index fe28cead..89973b6b 100644
--- a/CompilerUtils.h
+++ b/CompilerUtils.h
@@ -37,14 +37,13 @@ public:
/// Loads data from memory to the stack.
/// @param _offset offset in memory (or calldata)
- /// @param _bytes number of bytes to load
- /// @param _leftAligned if true, store left aligned on stack (otherwise right aligned)
+ /// @param _type data type to load
/// @param _fromCalldata if true, load from calldata, not from memory
/// @param _padToWordBoundaries if true, assume the data is padded to word (32 byte) boundaries
/// @returns the number of bytes consumed in memory (can be different from _bytes if
- /// _padToWordBoundaries is true)
- unsigned loadFromMemory(unsigned _offset, unsigned _bytes = 32, bool _leftAligned = false,
- bool _fromCalldata = false, bool _padToWordBoundaries = false);
+ /// _padToWordBoundaries is true)
+ unsigned loadFromMemory(unsigned _offset, Type const& _type = IntegerType(256),
+ bool _fromCalldata = false, bool _padToWordBoundaries = false);
/// Stores data from stack in memory.
/// @param _offset offset in memory
/// @param _type type of the data on the stack