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
7008a88e
Commit
7008a88e
authored
Mar 16, 2017
by
Byron Yi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add LIBPROTOBUF_EXPORT to make msvc happy
parent
cb3e84b7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
delimited_message_util.h
src/google/protobuf/util/delimited_message_util.h
+6
-6
No files found.
src/google/protobuf/util/delimited_message_util.h
View file @
7008a88e
...
...
@@ -30,9 +30,9 @@ namespace util {
// then parse it. As a result, they may read past the end of the delimited
// message. There is no way for them to push the extra data back into the
// underlying source, so instead you must keep using the same stream object.
bool
SerializeDelimitedToFileDescriptor
(
const
Message
*
message
,
int
file_descriptor
);
bool
LIBPROTOBUF_EXPORT
SerializeDelimitedToFileDescriptor
(
const
Message
*
message
,
int
file_descriptor
);
bool
SerializeDelimitedToOstream
(
const
Message
*
message
,
ostream
*
output
);
bool
LIBPROTOBUF_EXPORT
SerializeDelimitedToOstream
(
const
Message
*
message
,
ostream
*
output
);
// Read a single size-delimited message from the given stream. Delimited
// format allows a single file or stream to contain multiple messages,
...
...
@@ -46,18 +46,18 @@ bool SerializeDelimitedToOstream(const Message* message, ostream* output);
// otherwise it will be set false. Note that these methods return false
// on EOF, but they also return false on other errors, so |clean_eof| is
// needed to distinguish a clean end from errors.
bool
ParseDelimitedFromZeroCopyStream
(
MessageLite
*
message
,
io
::
ZeroCopyInputStream
*
input
,
bool
*
clean_eof
);
bool
LIBPROTOBUF_EXPORT
ParseDelimitedFromZeroCopyStream
(
MessageLite
*
message
,
io
::
ZeroCopyInputStream
*
input
,
bool
*
clean_eof
);
bool
ParseDelimitedFromCodedStream
(
MessageLite
*
message
,
io
::
CodedInputStream
*
input
,
bool
*
clean_eof
);
bool
LIBPROTOBUF_EXPORT
ParseDelimitedFromCodedStream
(
MessageLite
*
message
,
io
::
CodedInputStream
*
input
,
bool
*
clean_eof
);
// Write a single size-delimited message from the given stream. Delimited
// format allows a single file or stream to contain multiple messages,
// whereas normally writing multiple non-delimited messages to the same
// stream would cause them to be merged. A delimited message is a varint
// encoding the message size followed by a message of exactly that size.
bool
SerializeDelimitedToZeroCopyStream
(
const
MessageLite
*
message
,
io
::
ZeroCopyOutputStream
*
output
);
bool
LIBPROTOBUF_EXPORT
SerializeDelimitedToZeroCopyStream
(
const
MessageLite
*
message
,
io
::
ZeroCopyOutputStream
*
output
);
bool
SerializeDelimitedToCodedStream
(
const
MessageLite
*
message
,
io
::
CodedOutputStream
*
output
);
bool
LIBPROTOBUF_EXPORT
SerializeDelimitedToCodedStream
(
const
MessageLite
*
message
,
io
::
CodedOutputStream
*
output
);
}
// namespace util
}
// namespace protobuf
...
...
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