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