Exemple #1
0
        public static string ToString(BitVector8 value)
        {
            StringBuilder builder = new StringBuilder(0x2d);

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

            for (int i = 0; i < 0x8; i++)
            {
                if ((data & 0x80L) != 0L)
                {
                    builder.Append("1");
                }
                else
                {
                    builder.Append("0");
                }
                data = data << 1;
            }
            builder.Append("}");
            return(builder.ToString());
        }
Exemple #2
0
 public BitVector8(BitVector8 value)
 {
     this.data = value.Data;
 }