aboutsummaryrefslogtreecommitdiffstats
path: root/CompilerUtils.h
diff options
context:
space:
mode:
authorchriseth <c@ethdev.com>2015-03-05 22:41:39 +0800
committerchriseth <c@ethdev.com>2015-03-05 22:41:39 +0800
commit280df42463c61786dd2dac0106d3f23c1b3c4275 (patch)
tree483dd3f6bf6ca2a9a87504fcf3617b7b746230d9 /CompilerUtils.h
parentb84cf62d6bd3a9caa8a9a7f1dcd427418170aed9 (diff)
downloaddexon-solidity-280df42463c61786dd2dac0106d3f23c1b3c4275.tar.gz
dexon-solidity-280df42463c61786dd2dac0106d3f23c1b3c4275.tar.zst
dexon-solidity-280df42463c61786dd2dac0106d3f23c1b3c4275.zip
Styling
Diffstat (limited to 'CompilerUtils.h')
-rw-r--r--CompilerUtils.h21
1 files changed, 16 insertions, 5 deletions
diff --git a/CompilerUtils.h b/CompilerUtils.h
index b06f2c7a..24ebbc81 100644
--- a/CompilerUtils.h
+++ b/CompilerUtils.h
@@ -41,20 +41,31 @@ public:
/// @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.
- unsigned loadFromMemory(unsigned _offset, Type const& _type = IntegerType(256),
- bool _fromCalldata = false, bool _padToWordBoundaries = false);
+ unsigned loadFromMemory(
+ unsigned _offset,
+ Type const& _type = IntegerType(256),
+ bool _fromCalldata = false,
+ bool _padToWordBoundaries = false
+ );
/// Dynamic version of @see loadFromMemory, expects the memory offset on the stack.
/// Stack pre: memory_offset
/// Stack post: value... (memory_offset+length)
- void loadFromMemoryDynamic(Type const& _type, bool _fromCalldata = false,
- bool _padToWordBoundaries = true, bool _keepUpdatedMemoryOffset = true);
+ void loadFromMemoryDynamic(
+ Type const& _type,
+ bool _fromCalldata = false,
+ bool _padToWordBoundaries = true,
+ bool _keepUpdatedMemoryOffset = true
+ );
/// Stores data from stack in memory.
/// @param _offset offset in memory
/// @param _type type of the data on the stack
/// @param _padToWordBoundaries if true, pad the data to word (32 byte) boundaries
/// @returns the number of bytes written to memory (can be different from _bytes if
/// _padToWordBoundaries is true)
- unsigned storeInMemory(unsigned _offset, Type const& _type = IntegerType(256), bool _padToWordBoundaries = false);
+ unsigned storeInMemory(unsigned _offset,
+ Type const& _type = IntegerType(256),
+ bool _padToWordBoundaries = false
+ );
/// Dynamic version of @see storeInMemory, expects the memory offset below the value on the stack
/// and also updates that.
/// Stack pre: memory_offset value...