private static byte[] hexTable = { 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F };

private static byte uniteBytes(byte src0, byte src1) { byte _b0 = hexTable[src0 & 0xFF]; _b0 = (byte) (_b0 << 4);

byte _b1 = hexTable[src1 & 0xFF];

byte ret = (byte) (_b0 ^ _b1);
return ret;

}

请将此方法改成查表方式: private static byte uniteBytesbyte src0 byte src1 char _b0 = char Bytedecode0x + new Stringnew bytesrc0byteValue; _b0 = char _b0 4; char _b1 = char Byted

原文地址: https://www.cveoy.top/t/topic/cyfj 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录