public static byte ToValue(byte[] table, int index) { UnionByte bt = new UnionByte(); bt.SetBytes(table, index); return(bt.value); }
public static byte[] ToBytes(byte val) { UnionByte bt = new UnionByte(); bt.value = val; return(bt.bytes); }
public static byte[] ToBytes(byte val) { return(UnionByte.ToBytes(val)); }
public static int ToValue(out byte ret, byte[] bytes, int index) { ret = UnionByte.ToValue(bytes, index); return(UnionByte.Size); }