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

Method Serialization

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

Source from the content-addressed store, hash-verified

89}
90
91func (this *FuncsToRoleParam) Serialization(sink *common.ZeroCopySink) {
92 utils.EncodeAddress(sink, this.ContractAddr)
93 sink.WriteVarBytes(this.AdminOntID)
94 sink.WriteVarBytes(this.Role)
95 utils.EncodeVarUint(sink, uint64(len(this.FuncNames)))
96 for _, fn := range this.FuncNames {
97 sink.WriteString(fn)
98 }
99 utils.EncodeVarUint(sink, this.KeyNo)
100}
101
102func (this *FuncsToRoleParam) Deserialization(source *common.ZeroCopySource) error {
103 var err error

Callers 1

Calls 4

EncodeAddressFunction · 0.92
EncodeVarUintFunction · 0.92
WriteVarBytesMethod · 0.80
WriteStringMethod · 0.80

Tested by 1