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
f09fed21
Commit
f09fed21
authored
Aug 16, 2008
by
Jon Skeet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Small tidying.
parent
2cbd799b
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
8 deletions
+6
-8
ByteString.cs
csharp/ProtocolBuffers/ByteString.cs
+6
-6
GeneratedBuilder.cs
csharp/ProtocolBuffers/GeneratedBuilder.cs
+0
-2
No files found.
csharp/ProtocolBuffers/ByteString.cs
View file @
f09fed21
// Protocol Buffers - Google's data interchange format
using
System
;
using
System.Collections
;
using
System.Collections.Generic
;
// Protocol Buffers - Google's data interchange format
// Copyright 2008 Google Inc.
// Copyright 2008 Google Inc.
// http://code.google.com/p/protobuf/
// http://code.google.com/p/protobuf/
//
//
...
@@ -14,9 +17,6 @@
...
@@ -14,9 +17,6 @@
// See the License for the specific language governing permissions and
// See the License for the specific language governing permissions and
// limitations under the License.
// limitations under the License.
using
System.Text
;
using
System.Text
;
using
System
;
using
System.Collections.Generic
;
using
System.Collections
;
namespace
Google.ProtocolBuffers
{
namespace
Google.ProtocolBuffers
{
/// <summary>
/// <summary>
...
@@ -27,7 +27,7 @@ namespace Google.ProtocolBuffers {
...
@@ -27,7 +27,7 @@ namespace Google.ProtocolBuffers {
private
static
readonly
ByteString
empty
=
new
ByteString
(
new
byte
[
0
]);
private
static
readonly
ByteString
empty
=
new
ByteString
(
new
byte
[
0
]);
private
byte
[]
bytes
;
private
readonly
byte
[]
bytes
;
/// <summary>
/// <summary>
/// Constructs a new ByteString from the given byte array. The array is
/// Constructs a new ByteString from the given byte array. The array is
...
@@ -124,7 +124,7 @@ namespace Google.ProtocolBuffers {
...
@@ -124,7 +124,7 @@ namespace Google.ProtocolBuffers {
return
CodedInputStream
.
CreateInstance
(
bytes
);
return
CodedInputStream
.
CreateInstance
(
bytes
);
}
}
// TODO(jonskeet): CopyTo
, Equals, GetHashCode if they turn
out to be required
// TODO(jonskeet): CopyTo
if it turns
out to be required
public
override
bool
Equals
(
object
obj
)
{
public
override
bool
Equals
(
object
obj
)
{
ByteString
other
=
obj
as
ByteString
;
ByteString
other
=
obj
as
ByteString
;
...
...
csharp/ProtocolBuffers/GeneratedBuilder.cs
View file @
f09fed21
...
@@ -151,7 +151,6 @@ namespace Google.ProtocolBuffers {
...
@@ -151,7 +151,6 @@ namespace Google.ProtocolBuffers {
/// <summary>
/// <summary>
/// Like Build(), but will wrap UninitializedMessageException in
/// Like Build(), but will wrap UninitializedMessageException in
/// InvalidProtocolBufferException.
/// InvalidProtocolBufferException.
/// TODO(jonskeet): This used to be generated for each class. Find out why.
/// </summary>
/// </summary>
public
TMessage
BuildParsed
()
{
public
TMessage
BuildParsed
()
{
if
(!
IsInitialized
)
{
if
(!
IsInitialized
)
{
...
@@ -162,7 +161,6 @@ namespace Google.ProtocolBuffers {
...
@@ -162,7 +161,6 @@ namespace Google.ProtocolBuffers {
/// <summary>
/// <summary>
/// Implementation of <see cref="IBuilder{TMessage, TBuilder}.Build" />.
/// Implementation of <see cref="IBuilder{TMessage, TBuilder}.Build" />.
/// TODO(jonskeet): This used to be generated for each class. Find out why.
/// </summary>
/// </summary>
public
override
TMessage
Build
()
{
public
override
TMessage
Build
()
{
if
(!
IsInitialized
)
{
if
(!
IsInitialized
)
{
...
...
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