Example #1
0
        public BitSection(string s)
        {
            var ss = s.Split("-".ToArray());

            Start = new BitPosition(ss[0]);
            if (ss.Length > 1)
            {
                End = new BitPosition(ss[1]);
            }
            else
            {
                if (Start.BitOffset == -1)
                {
                    Start.BitOffset = 0;
                    End             = new BitPosition(Start.ByteOffset, 7);
                }
                else
                {
                    End = new BitPosition(Start.ByteOffset, Start.BitOffset);
                }
            }
        }
Example #2
0
 public BitSection(BitPosition start, BitPosition end)
 {
     this.Start = start;
     this.End   = end;
 }