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
ed701ad2
Commit
ed701ad2
authored
Jul 14, 2011
by
csharptest
Committed by
rogerk
Jul 14, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
renamed ByteString.WriteTo(CodedOutputStream) to WriteRawBytesTo
parent
398a7f52
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
+6
-3
ByteString.cs
src/ProtocolBuffers/ByteString.cs
+4
-1
CodedOutputStream.cs
src/ProtocolBuffers/CodedOutputStream.cs
+2
-2
No files found.
src/ProtocolBuffers/ByteString.cs
View file @
ed701ad2
...
...
@@ -252,7 +252,10 @@ namespace Google.ProtocolBuffers
}
}
internal
void
WriteTo
(
CodedOutputStream
outputStream
)
/// <summary>
/// Used internally by CodedOutputStream to avoid creating a copy for the write
/// </summary>
internal
void
WriteRawBytesTo
(
CodedOutputStream
outputStream
)
{
outputStream
.
WriteRawBytes
(
bytes
,
0
,
bytes
.
Length
);
}
...
...
src/ProtocolBuffers/CodedOutputStream.cs
View file @
ed701ad2
...
...
@@ -360,7 +360,7 @@ namespace Google.ProtocolBuffers
{
WriteTag
(
fieldNumber
,
WireFormat
.
WireType
.
LengthDelimited
);
WriteRawVarint32
((
uint
)
value
.
Length
);
value
.
WriteTo
(
this
);
value
.
Write
RawBytes
To
(
this
);
}
[
CLSCompliant
(
false
)]
...
...
@@ -637,7 +637,7 @@ namespace Google.ProtocolBuffers
public
void
WriteBytesNoTag
(
ByteString
value
)
{
WriteRawVarint32
((
uint
)
value
.
Length
);
value
.
WriteTo
(
this
);
value
.
Write
RawBytes
To
(
this
);
}
[
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