public static byte[] Pack_HeadJce(int req, string cmd1, string cmd2, byte[] bytesIn) { Dictionary <object, object> dic = new Dictionary <object, object>() { { "", "" } }; var bytes = JceStruct.writeByte(3, 1); bytes = bytes.Concat(JceStruct.writeByte(0, 2)).ToArray(); bytes = bytes.Concat(JceStruct.writeByte(0, 3)).ToArray(); bytes = bytes.Concat(JceStruct.writeInt(req, 4)).ToArray(); bytes = bytes.Concat(JceStruct.writeString(cmd1, 5)).ToArray(); bytes = bytes.Concat(JceStruct.writeString(cmd2, 6)).ToArray(); bytes = bytes.Concat(JceStruct.writeSimpleList(bytesIn, 7)).ToArray(); bytes = bytes.Concat(JceStruct.writeByte(0, 8)).ToArray(); bytes = bytes.Concat(JceStruct.writeEmptyMap(9)).ToArray(); bytes = bytes.Concat(JceStruct.writeEmptyMap(10)).ToArray(); //Debug.Print("Pack_HeadJce" + Environment.NewLine + BitConverter.ToString(bytes).Replace("-", " ")) return(bytes); }