Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
P
protobuf
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
protobuf
Commits
8521624e
Unverified
Commit
8521624e
authored
Dec 13, 2017
by
Jisi Liu
Committed by
GitHub
Dec 13, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #4043 from pherl/flush
Explicitly propagate the status of Flush().
parents
f69a5db6
6b01e644
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
message.cc
src/google/protobuf/message.cc
+2
-2
No files found.
src/google/protobuf/message.cc
View file @
8521624e
...
@@ -170,12 +170,12 @@ size_t Message::SpaceUsedLong() const {
...
@@ -170,12 +170,12 @@ size_t Message::SpaceUsedLong() const {
bool
Message
::
SerializeToFileDescriptor
(
int
file_descriptor
)
const
{
bool
Message
::
SerializeToFileDescriptor
(
int
file_descriptor
)
const
{
io
::
FileOutputStream
output
(
file_descriptor
);
io
::
FileOutputStream
output
(
file_descriptor
);
return
SerializeToZeroCopyStream
(
&
output
);
return
SerializeToZeroCopyStream
(
&
output
)
&&
output
.
Flush
()
;
}
}
bool
Message
::
SerializePartialToFileDescriptor
(
int
file_descriptor
)
const
{
bool
Message
::
SerializePartialToFileDescriptor
(
int
file_descriptor
)
const
{
io
::
FileOutputStream
output
(
file_descriptor
);
io
::
FileOutputStream
output
(
file_descriptor
);
return
SerializePartialToZeroCopyStream
(
&
output
);
return
SerializePartialToZeroCopyStream
(
&
output
)
&&
output
.
Flush
()
;
}
}
bool
Message
::
SerializeToOstream
(
std
::
ostream
*
output
)
const
{
bool
Message
::
SerializeToOstream
(
std
::
ostream
*
output
)
const
{
...
...
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