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