Пример #1
0
 /// <inheritdoc />
 public void Serialize(BinaryLogger.EventWriter writer)
 {
     writer.WriteCompact(PipId.Value);
     writer.WriteCompact((int)Kind);
     writer.Write(WeakFingerprint);
     writer.WriteReadOnlyList(StrongFingerprintComputations, (w, v) => v.Serialize((BinaryLogger.EventWriter)w));
 }
Пример #2
0
        public void Serialize(BinaryLogger.EventWriter writer)
        {
            writer.Write(PathSetHash);
            PathSet.Serialize(
                writer.PathTable,
                writer,
                pathWriter: (w, v) => w.Write(v),
                stringWriter: (w, v) => ((BinaryLogger.EventWriter)w).WriteDynamicStringId(v));
            writer.WriteReadOnlyList(PriorStrongFingerprints, (w, v) => w.Write(v));
            writer.Write(Succeeded);

            if (Succeeded)
            {
                writer.Write(IsStrongFingerprintHit);
                writer.Write(ObservedInputs, (w, v) => v.Serialize(w));
                writer.Write(ComputedStrongFingerprint);
            }
        }