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
3aa06356
Commit
3aa06356
authored
Aug 01, 2011
by
csharptest
Committed by
rogerk
Aug 01, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removal of #condition commented source
parent
c11bf71c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
57 deletions
+0
-57
CodedOutputStream.cs
src/ProtocolBuffers/CodedOutputStream.cs
+0
-57
No files found.
src/ProtocolBuffers/CodedOutputStream.cs
View file @
3aa06356
...
...
@@ -1078,25 +1078,6 @@ namespace Google.ProtocolBuffers
WriteRawVarint32
(
WireFormat
.
MakeTag
(
fieldNumber
,
type
));
}
#if false
private
void
SlowWriteRawVarint32
(
uint
value
)
{
while
(
true
)
{
if
((
value
&
~
0x7F
)
==
0
)
{
WriteRawByte
(
value
);
return
;
}
else
{
WriteRawByte
((
value
&
0x7F
)
|
0x80
);
value
>>=
7
;
}
}
}
#endif
/// <summary>
/// Writes a 32 bit value as a varint. The fast route is taken when
/// there's enough buffer space left to whizz through without checking
...
...
@@ -1105,7 +1086,6 @@ namespace Google.ProtocolBuffers
[
CLSCompliant
(
false
)]
public
void
WriteRawVarint32
(
uint
value
)
{
#if true
while
(
value
>
127
&&
position
<
limit
)
{
buffer
[
position
++]
=
(
byte
)
((
value
&
0x7F
)
|
0x80
);
...
...
@@ -1124,33 +1104,11 @@ namespace Google.ProtocolBuffers
{
WriteRawByte
((
byte
)
value
);
}
#else
if
(
position
+
5
>
limit
)
{
SlowWriteRawVarint32
(
value
);
return
;
}
while
(
true
)
{
if
((
value
&
~
0x7F
)
==
0
)
{
buffer
[
position
++]
=
(
byte
)
value
;
return
;
}
else
{
buffer
[
position
++]
=
(
byte
)
((
value
&
0x7F
)
|
0x80
);
value
>>=
7
;
}
}
#endif
}
[
CLSCompliant
(
false
)]
public
void
WriteRawVarint64
(
ulong
value
)
{
#if true
while
(
value
>
127
&&
position
<
limit
)
{
buffer
[
position
++]
=
(
byte
)
((
value
&
0x7F
)
|
0x80
);
...
...
@@ -1169,21 +1127,6 @@ namespace Google.ProtocolBuffers
{
WriteRawByte
((
byte
)
value
);
}
#else
while
(
true
)
{
if
((
value
&
~
0x7FU
L
)
==
0
)
{
WriteRawByte
((
uint
)
value
);
return
;
}
else
{
WriteRawByte
(((
uint
)
value
&
0x7F
)
|
0x80
);
value
>>=
7
;
}
}
#endif
}
[
CLSCompliant
(
false
)]
...
...
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