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

43 lines
1.1 KiB

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

Powered by TurnKey Linux.