34 tmp_size = buffer_size;
39 if ((nbuf - pack_count > 0) &&
64 int iopb_offset =
m_iov.size();
67 assert(static_cast<IOSize>(len[0]) <= buffer_size);
72 IOSize buffer_used = len[0];
75 if (buffer_used + len[
idx] > buffer_size) {
81 assert(extra_bytes_signed >= 0);
82 IOSize extra_bytes = static_cast<IOSize>(extra_bytes_signed);
94 buffer_used += (len[
idx] + extra_bytes);
100 m_iov.push_back(iopb);
113 buffer_used += len[
idx];
115 m_iov.push_back(iopb);
126 char *root_result_ptr =
buf;
132 char *io_result_ptr = static_cast<char *>(iopb.
data()) + iopb_offset;
135 memmove(root_result_ptr, io_result_ptr,
m_len[
idx]);
147 m_iov.reserve(nbuf / 2);