| |||||||||||||||
Reference/es_wbstruct es_wb is an opaque data structure representing a write-buffer. A write-buffer is used for buffered writing to a file descriptor. It is meant to be used as a wrapper over the write() system call: It is inefficient to make repeated calls to write() in order to write many small items of data. It is more efficient to write incrementally to a buffer and then flush the contents of that buffer in a single call to write(). The write-buffer facilitates this by presenting a write()-like interface that can be called repeatedly for small items of data but which, under the covers, is buffering most of these writes and only occasionally flushing the buffer via a write() system call.
| |||||||||||||||
Copyright © 2012 by Richard Brooks |