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
63eca470
Commit
63eca470
authored
Sep 04, 2015
by
Feng Xiao
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #793 from kbinani/fix_redefinition_BYTE_SIZE_macro
Rename 'BYTE_SIZE' macro to 'GOOGLE_PROTOBUF_BYTE_SIZE'
parents
0087da9d
9a06c800
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
12 deletions
+12
-12
map_type_handler.h
src/google/protobuf/map_type_handler.h
+12
-12
No files found.
src/google/protobuf/map_type_handler.h
View file @
63eca470
...
...
@@ -272,24 +272,24 @@ MapTypeHandler<WireFormatLite::TYPE_MESSAGE, Type>::ByteSize(
return
WireFormatLite
::
MessageSizeNoVirtual
(
value
);
}
#define
BYTE_SIZE(FieldType, DeclaredType)
\
#define
GOOGLE_PROTOBUF_BYTE_SIZE(FieldType, DeclaredType)
\
template <typename Type> \
inline int MapTypeHandler<WireFormatLite::TYPE_##FieldType, Type>::ByteSize( \
const MapEntryAccessorType& value) { \
return WireFormatLite::DeclaredType##Size(value); \
}
BYTE_SIZE
(
STRING
,
String
)
BYTE_SIZE
(
BYTES
,
Bytes
)
BYTE_SIZE
(
INT64
,
Int64
)
BYTE_SIZE
(
UINT64
,
UInt64
)
BYTE_SIZE
(
INT32
,
Int32
)
BYTE_SIZE
(
UINT32
,
UInt32
)
BYTE_SIZE
(
SINT64
,
SInt64
)
BYTE_SIZE
(
SINT32
,
SInt32
)
BYTE_SIZE
(
ENUM
,
Enum
)
#undef BYTE_SIZE
GOOGLE_PROTOBUF_
BYTE_SIZE
(
STRING
,
String
)
GOOGLE_PROTOBUF_
BYTE_SIZE
(
BYTES
,
Bytes
)
GOOGLE_PROTOBUF_
BYTE_SIZE
(
INT64
,
Int64
)
GOOGLE_PROTOBUF_
BYTE_SIZE
(
UINT64
,
UInt64
)
GOOGLE_PROTOBUF_
BYTE_SIZE
(
INT32
,
Int32
)
GOOGLE_PROTOBUF_
BYTE_SIZE
(
UINT32
,
UInt32
)
GOOGLE_PROTOBUF_
BYTE_SIZE
(
SINT64
,
SInt64
)
GOOGLE_PROTOBUF_
BYTE_SIZE
(
SINT32
,
SInt32
)
GOOGLE_PROTOBUF_
BYTE_SIZE
(
ENUM
,
Enum
)
#undef
GOOGLE_PROTOBUF_
BYTE_SIZE
#define FIXED_BYTE_SIZE(FieldType, DeclaredType) \
template <typename Type> \
...
...
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