Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
C
capnproto
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
capnproto
Commits
83e27117
Commit
83e27117
authored
Jun 03, 2016
by
Travis Gockel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kj/io: Make FdOutputStream::write fallback to OutputStream::write.
parent
94946a09
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
io.c++
c++/src/kj/io.c++
+2
-4
No files found.
c++/src/kj/io.c++
View file @
83e27117
...
...
@@ -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
());
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment