You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Zero/ZeroLevel/Services/DOM/Model/Identifier.cs

54 lines
1.1 KiB

using ZeroLevel.Services.Serialization;
namespace ZeroLevel.DocumentObjectModel
{
public class Identifier :
IBinarySerializable
{
public Identifier()
{
}
public Identifier(IBinaryReader reader)
{
Deserialize(reader);
}
#region Fields
/// <summary>
/// Version
/// </summary>
public int Version;
/// <summary>
/// Timestamp ID
/// </summary>
public long Timestamp;
/// <summary>
/// Label with day accurcy
/// </summary>
public string DateLabel;
#endregion Fields
#region IBinarySerializable
public void Serialize(IBinaryWriter writer)
{
writer.WriteInt32(this.Version);
writer.WriteLong(this.Timestamp);
writer.WriteString(this.DateLabel);
}
public void Deserialize(IBinaryReader reader)
{
this.Version = reader.ReadInt32();
this.Timestamp = reader.ReadLong();
this.DateLabel = reader.ReadString();
}
#endregion IBinarySerializable
}
}

Powered by TurnKey Linux.