aboutsummaryrefslogtreecommitdiffstats
path: root/ArrayUtils.h
diff options
context:
space:
mode:
authorchriseth <c@ethdev.com>2015-06-26 00:52:19 +0800
committerchriseth <c@ethdev.com>2015-06-26 00:52:19 +0800
commit2e5c52bfabdc7ac221bf4617ed98d9a9abef85b8 (patch)
treee2cf306d37298b8de3da3a9c0c29a024bfc3f080 /ArrayUtils.h
parentfb14a586f4084d8acb3a765f3995e2a5e7b3a5b3 (diff)
parent529ed468df4c8fc9947cf92b42a5da84c7434b49 (diff)
downloaddexon-solidity-2e5c52bfabdc7ac221bf4617ed98d9a9abef85b8.tar
dexon-solidity-2e5c52bfabdc7ac221bf4617ed98d9a9abef85b8.tar.gz
dexon-solidity-2e5c52bfabdc7ac221bf4617ed98d9a9abef85b8.tar.bz2
dexon-solidity-2e5c52bfabdc7ac221bf4617ed98d9a9abef85b8.tar.lz
dexon-solidity-2e5c52bfabdc7ac221bf4617ed98d9a9abef85b8.tar.xz
dexon-solidity-2e5c52bfabdc7ac221bf4617ed98d9a9abef85b8.tar.zst
dexon-solidity-2e5c52bfabdc7ac221bf4617ed98d9a9abef85b8.zip
Merge pull request #2276 from chriseth/sol_memoryArrays7
Copy routines for non-byte arrays.
Diffstat (limited to 'ArrayUtils.h')
-rw-r--r--ArrayUtils.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/ArrayUtils.h b/ArrayUtils.h
index dab40e2d..8d56f3c8 100644
--- a/ArrayUtils.h
+++ b/ArrayUtils.h
@@ -44,6 +44,10 @@ public:
/// Stack pre: source_reference [source_byte_offset/source_length] target_reference target_byte_offset
/// Stack post: target_reference target_byte_offset
void copyArrayToStorage(ArrayType const& _targetType, ArrayType const& _sourceType) const;
+ /// Copies an array (which cannot be dynamically nested) from anywhere to memory.
+ /// Stack pre: memory_offset source_item
+ /// Stack post: memory_offest + length(padded)
+ void copyArrayToMemory(ArrayType const& _sourceType, bool _padToWordBoundaries = true) const;
/// Clears the given dynamic or static array.
/// Stack pre: storage_ref storage_byte_offset
/// Stack post: