Exemplo n.º 1
0
 /// <summary>
 /// Serializes
 /// </summary>
 public void Serialize(BuildXLWriter writer)
 {
     writer.Write(Path);
     Hash.SerializeHashBytes(writer);
     writer.WriteCompact(Length);
     writer.WriteCompact(Offset);
 }
Exemplo n.º 2
0
 public void Serialize(BuildXLWriter writer)
 {
     writer.WriteCompact((int)Type);
     PathEntry.Serialize(writer);
     if (!HasPredefinedHash(Type))
     {
         Hash.SerializeHashBytes(writer);
     }
 }
Exemplo n.º 3
0
 /// <summary>
 /// Write the content hash
 /// </summary>
 public static void Write(this BinaryWriter writer, ContentHash hash)
 {
     Contract.Requires(hash.HashType == ContentHashingUtilities.HashInfo.HashType);
     hash.SerializeHashBytes(writer);
 }