Home | History | Annotate | Download | only in quic

Lines Matching refs:iovec

14 #include "net/base/iovec.h"
19 // Calculate the total number of bytes in an array of iovec structures.
20 inline size_t TotalIovecLength(const struct iovec* iov, size_t iovcnt) {
47 // int bytes_written = writev(fd, iovector.iovec(), iovector.Size());
55 // IOVector does not have any method to change the iovec entries that it
68 // Provides a way to convert system call-like iovec representation to
70 void AppendIovec(const struct iovec* iov, size_t iovcnt) {
75 // Appends at most max_bytes from iovec to the IOVector.
76 size_t AppendIovecAtMostBytes(const struct iovec* iov,
95 struct iovec& last = iovec_.back();
102 struct iovec tmp = {buffer, length};
111 struct iovec tmp = {buffer, length};
125 std::vector<struct iovec>::iterator iter = iovec_.begin();
126 std::vector<struct iovec>::iterator end = iovec_.end();
142 // after walking through all the iovec entries.
164 // Returns the pointer to the beginning of the iovec to be used for vector
167 struct iovec* iovec() { return !Empty() ? &iovec_[0] : NULL; }
170 const struct iovec* iovec() const { return !Empty() ? &iovec_[0] : NULL; }
181 size_t TotalBufferSize() const { return TotalIovecLength(iovec(), Size()); }
188 std::vector<struct iovec> iovec_;