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
2fe0556c
Commit
2fe0556c
authored
Jun 30, 2016
by
Feng Xiao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix windows build.
Change-Id: Ibf7d1df850f4b497303f9f617751be98327898ef
parent
69cc213c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
7 deletions
+14
-7
extension_set.h
src/google/protobuf/extension_set.h
+2
-7
extension_set_heavy.cc
src/google/protobuf/extension_set_heavy.cc
+12
-0
No files found.
src/google/protobuf/extension_set.h
View file @
2fe0556c
...
...
@@ -419,13 +419,8 @@ class LIBPROTOBUF_EXPORT ExtensionSet {
// are never forced to serialize deterministically.
uint8
*
SerializeWithCachedSizesToArray
(
int
start_field_number
,
int
end_field_number
,
uint8
*
target
)
const
{
return
InternalSerializeWithCachedSizesToArray
(
start_field_number
,
end_field_number
,
false
,
target
);
}
uint8
*
SerializeMessageSetWithCachedSizesToArray
(
uint8
*
target
)
const
{
return
InternalSerializeMessageSetWithCachedSizesToArray
(
false
,
target
);
}
uint8
*
target
)
const
;
uint8
*
SerializeMessageSetWithCachedSizesToArray
(
uint8
*
target
)
const
;
// Returns the total serialized size of all the extensions.
int
ByteSize
()
const
;
...
...
src/google/protobuf/extension_set_heavy.cc
View file @
2fe0556c
...
...
@@ -409,6 +409,18 @@ int ExtensionSet::Extension::SpaceUsedExcludingSelf() const {
// The Serialize*ToArray methods are only needed in the heavy library, as
// the lite library only generates SerializeWithCachedSizes.
uint8
*
ExtensionSet
::
SerializeWithCachedSizesToArray
(
int
start_field_number
,
int
end_field_number
,
uint8
*
target
)
const
{
return
InternalSerializeWithCachedSizesToArray
(
start_field_number
,
end_field_number
,
false
,
target
);
}
uint8
*
ExtensionSet
::
SerializeMessageSetWithCachedSizesToArray
(
uint8
*
target
)
const
{
return
InternalSerializeMessageSetWithCachedSizesToArray
(
false
,
target
);
}
uint8
*
ExtensionSet
::
InternalSerializeWithCachedSizesToArray
(
int
start_field_number
,
int
end_field_number
,
bool
deterministic
,
uint8
*
target
)
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