(sink *common.ZeroCopySink)
| 139 | } |
| 140 | |
| 141 | func (this *DIDsToRoleParam) Serialization(sink *common.ZeroCopySink) { |
| 142 | serializeAddress(sink, this.ContractAddr) |
| 143 | sink.WriteVarBytes(this.AdminOntID) |
| 144 | sink.WriteVarBytes(this.Role) |
| 145 | |
| 146 | utils.EncodeVarUint(sink, uint64(len(this.Persons))) |
| 147 | for _, p := range this.Persons { |
| 148 | sink.WriteVarBytes(p) |
| 149 | } |
| 150 | utils.EncodeVarUint(sink, this.KeyNo) |
| 151 | } |
| 152 | |
| 153 | func (this *DIDsToRoleParam) Deserialization(source *common.ZeroCopySource) error { |
| 154 | var err error |