PipeSerialPortClearSerialCache 方法 |
清除串口缓冲区的数据,并返回该数据,如果缓冲区没有数据,返回的字节数组长度为0
The number sent clears the data in the serial port buffer and returns that data, or if there is no data in the buffer, the length of the byte array returned is 0
命名空间:
HslCommunication.Core.Pipe
程序集:
HslCommunication (在 HslCommunication.dll 中) 版本:12.1.2.0 (12.1.2.0)
语法 public OperateResult<byte[]> ClearSerialCache()
Public Function ClearSerialCache As OperateResult(Of Byte())
public:
OperateResult<array<unsigned char>^>^ ClearSerialCache()
member ClearSerialCache : unit -> OperateResult<byte[]>
返回值
类型:
OperateResultByte是否操作成功的方法
参见