public SnapshotPatch DeSerialize(BinaryReader reader, out SnapshotHeader header) { header = new SnapshotHeader(); header.DeSerialize(reader); SnapshotPatch patch = SnapshotPatch.Allocate(); patch.DeSerialize(reader, _serializerManager); return(patch); }
public SnapshotPatch DeSerialize(BinaryReader reader, out SnapshotHeader header) { header = new SnapshotHeader(); string version = header.DeSerialize(reader); if (!version.Equals(_version)) { _logger.ErrorFormat("ComponentSerializer Hash {0} Not Equal{1}", _version, version); } SnapshotPatch patch = SnapshotPatch.Allocate(); patch.DeSerialize(reader, _serializerManager); return(patch); }