Commit 881c6867 authored by Kenton Varda's avatar Kenton Varda

Merge branch 'master' of github.com:kentonv/capnproto

parents 538a767e 0fb92820
......@@ -1329,7 +1329,7 @@ _::Deferred<Func> defer(Func&& func) {
// you need to assign to an `auto` variable.
//
// The KJ_DEFER macro provides slightly more convenient syntax for the common case where you
// want some code to run at function exit.
// want some code to run at current scope exit.
return _::Deferred<Func>(kj::fwd<Func>(func));
}
......
......@@ -322,11 +322,9 @@ void FdOutputStream::write(const void* buffer, size_t size) {
void FdOutputStream::write(ArrayPtr<const ArrayPtr<const byte>> pieces) {
#if _WIN32
// Windows has no reasonable writev(). It has WriteFileGather, but this call has the unreasonable
// restriction that each segment must be page-aligned. So, fall back to write().
// restriction that each segment must be page-aligned. So, fall back to the default implementation
for (auto piece: pieces) {
write(piece.begin(), piece.size());
}
OutputStream::write(pieces);
#else
const size_t iovmax = miniposix::iovMax(pieces.size());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment