public virtual void WriteToStreamDelta(Stream stream, OwnerInfo previous) { if (previous == null) { OwnerInfo.Serialize(stream, this); return; } OwnerInfo.SerializeDelta(stream, this, previous); }
public static byte[] SerializeToBytes(OwnerInfo instance) { byte[] array; using (MemoryStream memoryStream = new MemoryStream()) { OwnerInfo.Serialize(memoryStream, instance); array = memoryStream.ToArray(); } return(array); }
public virtual void WriteToStream(Stream stream) { OwnerInfo.Serialize(stream, this); }
public void ToProto(Stream stream) { OwnerInfo.Serialize(stream, this); }