代码:
public static int writearry_Tec(int com,byte uart_port,uint16 length,string tecstr)
{
lock(obj)
{
byte[]buffer=encoding.utf8.getbytes(tecstr);
int result=s0004_srx_uart_write(com,uart_port,length,buffer);
return result;
}
}
报错为:参数4(buffer)必须与关键字ref一起传递