public byte[] Serialize()
{
int index = 0;
byte[] resultBytes = new byte[this.Size()];
Array.Copy(this.ReplGuid, 0, resultBytes, index, sizeof(byte) * 16);
index += sizeof(byte) * 16;
Array.Copy(this.GlobalCounter, 0, resultBytes, index, sizeof(byte) * 6);
index += sizeof(byte) * 6;
Array.Copy(BitConverter.GetBytes(0), 0, resultBytes, index, sizeof(ushort));
return resultBytes;
}