diff options
author | chriseth <c@ethdev.com> | 2015-06-26 00:52:19 +0800 |
---|---|---|
committer | chriseth <c@ethdev.com> | 2015-06-26 00:52:19 +0800 |
commit | 2e5c52bfabdc7ac221bf4617ed98d9a9abef85b8 (patch) | |
tree | e2cf306d37298b8de3da3a9c0c29a024bfc3f080 /ArrayUtils.h | |
parent | fb14a586f4084d8acb3a765f3995e2a5e7b3a5b3 (diff) | |
parent | 529ed468df4c8fc9947cf92b42a5da84c7434b49 (diff) | |
download | dexon-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.h | 4 |
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: |