Ejemplo n.º 1
0
 public CacheBucket(FieldRecord record)
 {
     BitOffset             = record.Range.StartOffset;
     BitLength             = record.Range.Length;
     ContainedFieldRecords = new List <FieldRecord>()
     {
         record
     };
 }
Ejemplo n.º 2
0
        public FieldSet(Protocol protocol)
        {
            MasterRecords = new List <FieldRecord>();
            Protocol      = protocol;

            foreach (var f in Protocol.Fields)
            {
                var field = new FieldRecord(f);

                //if f is the target of the protocols switch operation
                if (protocol.Switch != null && f == protocol.Switch.Target)
                {
                    field.IsSwitch = true;
                }

                MasterRecords.Add(field);
            }

            MasterRecords.Sort();
        }