diff options
author | Christian <c@ethdev.com> | 2015-02-15 07:11:51 +0800 |
---|---|---|
committer | Christian <c@ethdev.com> | 2015-02-17 02:25:27 +0800 |
commit | 1f6e3651362bdcdaa39773156875c36053d5f6be (patch) | |
tree | cf41f43c2b4e46b1859654ad9884e64f89d36015 /CompilerUtils.h | |
parent | f7ba85e0ecb6f690d62bcf66e0f0525f2ed97337 (diff) | |
download | dexon-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.h | 9 |
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 |