Example #1
0
        public static NodeLeader Read
        (
            [NotNull] Stream stream
        )
        {
            NodeLeader result = new NodeLeader
            {
                Number     = stream.ReadInt32Network(),
                Previous   = stream.ReadInt32Network(),
                Next       = stream.ReadInt32Network(),
                TermCount  = stream.ReadInt32Network(),
                FreeOffset = stream.ReadInt32Network()
            };

            return(result);
        }
Example #2
0
 /// <summary>
 /// Constructor.
 /// </summary>
 public NodeRecord()
 {
     Leader = new NodeLeader();
     _items = new List <NodeItem>();
 }