在示例程序中,总是用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.
您或许能够通过每次将一系列字节读取到缓冲区中找到更加令人高兴的方法,从而减少方法调用。
You might be able to find a happier medium by reading a series of bytes into a buffer at a time, thus saving the method calls.
此处,读取字节还不足以提取必要的信息,如果要读取字符串,则要返回一个缓冲区。
Here, reading the bytes is not enough to extract the necessary information; it returns a buffer if the string is read.
您甚至只需要使用一个指针并将数据写回到读取数据所使用的缓冲区中即可,不过这对于另外一端的编程来说可能有些麻烦。
You could even just use a single pointer and write data back into the buffer you got it from, although this might be a nuisance to program for on the other end.
缓冲区缓存——为存储从物理数据文件读取的数据块而分配的内存。
Buffer Cache - Memory allocated for storing data blocks read from physical data files.
当代理正在执行上述步骤3和步骤4时,UNION操作符(由协调代理程序运行)开始从UNION的第一个分支上的ship缓冲区中读取数据。
While the agents are busy doing steps 3 and 4 above, the union operator (run by the coordinator agent) starts reading data from the SHIP buffer on the first leg of the union.
ATQ操作符的消费者可以每次从 ATQ缓冲区中读取一行数据。
The consumer of the ATQ operator can read data one row at a time from the ATQ buffer.
该缓冲区缓存原本需要从磁盘读取的JMS消息数据。
This buffer caches JMS message data that may otherwise need to be read from disk.
我们还定义了宏inbufsiz,它是在读取输入时用作缓冲区的字符数组的大小。
We also define a macro INBUFSIZ, which is the size of a character array used as a buffer while reading the input.
验证被读取的缓冲区是否完整,是否有截断或者错误。
Verify whether the buffer that has been read is intact and whether it has any truncations or errors.
现在您已从读取的二进制缓冲区获得了拆包的值,那么您可以使用标准的print命令来获得必要的输出。
Now that you have the unpacked values from the binary buffer that you read, you can use the standard print commands to get the output necessary.
这个命令使用klogctl系统调用来读取内核环缓冲区,并将它转发到标准输出(stdout)。
This command USES the klogctl system call to read the kernel ring buffer and emit it to standard output (stdout).
当MySQL必须要进行排序时,就会在从磁盘上读取数据时分配一个排序缓冲区来存放这些数据行。
When MySQL must perform a sort, it allocates a sort buffer to store the rows as they're read from disk.
默认情况下,每个FileStream都使用8KB的缓冲区,因此该实现所使用的内存要远远少于前面读取并处理整个文件的代码。
By default, each FileStream USES a buffer of 8kb, so this implementation USES much less memory than the prior code that reads and processes the entire file.
transferTo()方法引发DMA引擎将文件内容拷贝到一个读取缓冲区。
The transferTo() method causes the file contents to be copied into a read buffer by the DMA engine.
若能打开,则调用setvbuf()函数来设置大小为INBUFSIZ的缓冲区(以前用 #defined 定义为16KB)以从fin 进行读取。
Otherwise, we call the setvbuf() function to set a buffer of size INBUFSIZ (earlier #defined as 16KB) for reading from fin.
然后,联邦服务器上的SHIP逻辑发送'Fetch '请求,以便读取来自被发送到“ US ”数据源的查询的一块数据,并将数据放入ship缓冲区。
The SHIP logic on the federated server then sends' Fetch 'requests to read a block of data from the result of the query sent to the "US" data source and places the data into the SHIP buffer.
ReadCache:应该从缓冲区池读取的页面百分比。
Read Cache: Percentage of times the page should be read from the buffer pool.
您可以非常简单地将它指向另外一个文件;从缓冲区中进行读取稍微有些困难。
You can point it at another file quite easily; it's a bit harder to, for instance, read from a buffer.
SPE程序从输入缓冲区中读取数据,然后对数据进行处理,再将结果写入输出缓冲区中。
The SPE program reads in the input buffer, processes the data, and then writes it to the output buffer.
数据可以直接从读取缓冲区传输到套接字缓冲区。
Instead, the data could be transferred directly from the read buffer to the socket buffer.
缓冲区地址实际上是一个用户空间的缓冲区,因此我们不能直接读取它。
The buffer address is actually a user-space buffer, so you won't be able to read it directly.
对于缓冲区处理,MFC 将大小为零的数据请求当作无操作来对待,所以即使没有数据可读取了,也可以继续发出请求。
For the buffer processing, the MFC treats a zero-size data request as a no-op, so I can go ahead and issue requests even if there is no data to read.
比较好的方法是读取一行到临时缓冲区,然后将这一行一次性拷贝到用户空间。
It would be better to read a line into a temporary buffer and then copy this to user space in one go.
而UNION操作符则从每个SHIP缓冲区中读取数据,每次读取一个缓冲区。
The UNION operator reads data from each SHIP buffer, one buffer at a time. The sequence of operations is as follows
在读取方面使用中间内核缓冲区,可以允许内核缓冲区在应用程序不需要内核缓冲区内的全部数据时,充当 “预读高速缓存(readahead cache)” 的角色。
Using the intermediate buffer on the read side allows the kernel buffer to act as a "readahead cache" when the application hasn't asked for as much data as the kernel buffer holds.
缓冲区缓存为存储从物理数据文件读取的数据块而分配的内存。
Buffer Cache Memory allocated for storing data blocks read from physical data files.
缓冲区缓存为存储从物理数据文件读取的数据块而分配的内存。
Buffer Cache Memory allocated for storing data blocks read from physical data files.
应用推荐