/// <summary> /// Serializes /// </summary> public void Serialize(BuildXLWriter writer) { writer.Write(Path); Hash.SerializeHashBytes(writer); writer.WriteCompact(Length); writer.WriteCompact(Offset); }
public void Serialize(BuildXLWriter writer) { writer.WriteCompact((int)Type); PathEntry.Serialize(writer); if (!HasPredefinedHash(Type)) { Hash.SerializeHashBytes(writer); } }
/// <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); }