合并字符串为byte[]: string str; byte[] b = new byte[10]; System.arraycopy(str.getBytes(),0,b,str.getBytes());