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