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

Method Serialization

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

Source from the content-addressed store, hash-verified

273}
274
275func (this *VerifyTokenParam) Serialization(sink *common.ZeroCopySink) {
276 serializeAddress(sink, this.ContractAddr)
277 sink.WriteVarBytes(this.Caller)
278 sink.WriteString(this.Fn)
279 utils.EncodeVarUint(sink, this.KeyNo)
280}
281
282func (this *VerifyTokenParam) Deserialization(source *common.ZeroCopySource) error {
283 var err error

Callers 1

Calls 4

EncodeVarUintFunction · 0.92
serializeAddressFunction · 0.85
WriteVarBytesMethod · 0.80
WriteStringMethod · 0.80

Tested by 1