MCPcopy Create free account
hub / github.com/DNAProject/DNA / Serialization

Method Serialization

smartcontract/service/native/auth/param.go:241–247  ·  view source on GitHub ↗
(sink *common.ZeroCopySink)

Source from the content-addressed store, hash-verified

239}
240
241func (this *WithdrawParam) Serialization(sink *common.ZeroCopySink) {
242 serializeAddress(sink, this.ContractAddr)
243 sink.WriteVarBytes(this.Initiator)
244 sink.WriteVarBytes(this.Delegate)
245 sink.WriteVarBytes(this.Role)
246 utils.EncodeVarUint(sink, this.KeyNo)
247}
248func (this *WithdrawParam) Deserialization(source *common.ZeroCopySource) error {
249 var err error
250 if this.ContractAddr, err = utils.DecodeAddress(source); err != nil {

Callers 1

Calls 3

EncodeVarUintFunction · 0.92
serializeAddressFunction · 0.85
WriteVarBytesMethod · 0.80

Tested by 1