Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
multipass
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
derf
multipass
Commits
ff5cca72
Commit
ff5cca72
authored
6 years ago
by
Birte Kristina Friesel
Browse files
Options
Downloads
Patches
Plain Diff
XDR: Use stdint types for now
parent
99b66c9c
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
include/object/xdrstream.h
+7
-9
7 additions, 9 deletions
include/object/xdrstream.h
src/os/object/xdrstream.cc
+1
-1
1 addition, 1 deletion
src/os/object/xdrstream.cc
with
8 additions
and
10 deletions
include/object/xdrstream.h
+
7
−
9
View file @
ff5cca72
...
...
@@ -21,16 +21,14 @@ class XDRStream {
XDRStream
&
operator
<<
(
char
c
);
XDRStream
&
operator
<<
(
unsigned
char
c
);
XDRStream
&
operator
<<
(
unsigned
short
number
);
XDRStream
&
operator
<<
(
short
number
);
XDRStream
&
operator
<<
(
unsigned
int
number
);
XDRStream
&
operator
<<
(
int
number
);
XDRStream
&
operator
<<
(
unsigned
long
number
);
XDRStream
&
operator
<<
(
long
number
);
XDRStream
&
operator
<<
(
unsigned
long
long
number
);
XDRStream
&
operator
<<
(
long
long
number
);
XDRStream
&
operator
<<
(
uint16_t
number
);
XDRStream
&
operator
<<
(
int16_t
number
);
XDRStream
&
operator
<<
(
uint32_t
number
);
XDRStream
&
operator
<<
(
int32_t
number
);
XDRStream
&
operator
<<
(
uint64_t
number
);
XDRStream
&
operator
<<
(
int64_t
number
);
XDRStream
&
operator
<<
(
char
const
*
text
);
template
<
int
TSize
>
XDRStream
&
operator
<<
(
char
const
(
&
text
)[
TSize
]);
template
<
u
int
32_t
TSize
>
XDRStream
&
operator
<<
(
char
const
(
&
text
)[
TSize
]);
XDRStream
&
operator
<<
(
XDRStream
&
(
*
fun
)
(
XDRStream
&
));
};
...
...
This diff is collapsed.
Click to expand it.
src/os/object/xdrstream.cc
+
1
−
1
View file @
ff5cca72
...
...
@@ -82,7 +82,7 @@ XDRStream & XDRStream::operator<<(char const *data){
return
*
this
;
}
template
<
int
TSize
>
template
<
u
int
32_t
TSize
>
XDRStream
&
XDRStream
::
operator
<<
(
char
const
(
&
data
)[
TSize
]){
if
(
!
is_fixed_length
)
{
*
this
<<
TSize
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment