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