示例#1
0
        public Byte4(long value)
        {
            var binary = Convert.ToString(value, 2).PadLeft(32, '0');

            High = new Byte2(binary.Substring(0, 16));
            Low  = new Byte2(binary.Substring(16, 16));
        }
 public Byte2 Read(Byte2 address)
 {
     return(_content[address.ToInt16()]);
 }
示例#3
0
 public Byte4(Byte2 high, Byte2 low)
 {
     High = high;
     Low  = low;
 }
示例#4
0
 public Byte4(string value)
 {
     High = new Byte2(value.Substring(0, 16));
     Low  = new Byte2(value.Substring(16, 16));
 }