示例#1
0
            public static byte ToValue(byte[] table, int index)
            {
                UnionByte bt = new UnionByte();

                bt.SetBytes(table, index);
                return(bt.value);
            }
示例#2
0
            public static byte[] ToBytes(byte val)
            {
                UnionByte bt = new UnionByte();

                bt.value = val;
                return(bt.bytes);
            }
示例#3
0
 public static byte[] ToBytes(byte val)
 {
     return(UnionByte.ToBytes(val));
 }
示例#4
0
 public static int ToValue(out byte ret, byte[] bytes, int index)
 {
     ret = UnionByte.ToValue(bytes, index);
     return(UnionByte.Size);
 }