void ICloneable <ContractState> .FromReplica(ContractState replica) { Code = replica.Code; HasStorage = replica.HasStorage; Name = replica.Name; CodeVersion = replica.CodeVersion; Author = replica.Author; Email = replica.Email; Description = replica.Description; }
public override void Deserialize(BinaryReader reader) { base.Deserialize(reader); Code = reader.ReadSerializable <FunctionCode>(); HasStorage = reader.ReadBoolean(); Name = reader.ReadVarString(); CodeVersion = reader.ReadVarString(); Author = reader.ReadVarString(); Email = reader.ReadVarString(); Description = reader.ReadVarString(); }
protected override void DeserializeExclusiveData(BinaryReader reader) { if (Version > 1) { throw new FormatException(); } Code = reader.ReadSerializable <FunctionCode>(); if (Version >= 1) { NeedStorage = reader.ReadBoolean(); } else { NeedStorage = false; } Name = reader.ReadVarString(252); CodeVersion = reader.ReadVarString(252); Author = reader.ReadVarString(252); Email = reader.ReadVarString(252); Description = reader.ReadVarString(65536); }