MCPcopy Create free account
hub / github.com/argotorg/solidity / packedEncode

Method packedEncode

libsolidity/codegen/CompilerUtils.h:159–166  ·  view source on GitHub ↗

Special case of @a encodeToMemory which assumes tight packing, e.g. no zero padding and dynamic data is encoded in-place. Stack pre: ... Stack post:

Source from the content-addressed store, hash-verified

157 /// Stack pre: <value0> <value1> ... <valueN-1> <head_start>
158 /// Stack post: <mem_ptr>
159 void packedEncode(
160 TypePointers const& _givenTypes,
161 TypePointers const& _targetTypes,
162 bool _encodeAsLibraryTypes = false
163 )
164 {
165 encodeToMemory(_givenTypes, _targetTypes, false, true, _encodeAsLibraryTypes);
166 }
167
168 /// Special case of @a encodeToMemory which assumes that everything is padded to words
169 /// and dynamic data is not copied in place (i.e. a proper ABI encoding).

Callers 1

visitMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected