Пример #1
0
        public static string ToString(BitVector16 value)
        {
            StringBuilder builder = new StringBuilder(0x2d);

            builder.Append("BitVector16{");
            int data = (int)value.data;

            for (int i = 0; i < 0x10; i++)
            {
                if ((data & 0x8000L) != 0L)
                {
                    builder.Append("1");
                }
                else
                {
                    builder.Append("0");
                }
                data = data << 1;
            }
            builder.Append("}");
            return(builder.ToString());
        }
Пример #2
0
 public BitVector16(BitVector16 value)
 {
     this.data = value.data;
 }