如无缓冲区不读取字符 unsigned char hold
在示例程序中,总是用4k的缓冲区读取事件数据。
In the sample program, event data is always read with a buffer of 4k.
采用类似的方式,您可以使用以下函数,逐段地从抽象缓冲区读取数据段。
In a similar fashion, you can read data segments off segment by segment from an abstract buffer with the following function.
用这么大的缓冲区读取数据意味着,不会由于传递给read调用的缓冲区空间不够造成只返回部分事件数据。
Reading with this large of a buffer means that no partial event occurrences will be returned due to insufficient space in the buffer passed to the read call.
应用推荐