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
51eb1b40
Commit
51eb1b40
authored
May 20, 2011
by
csharptest
Committed by
rogerk
May 20, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed some uses of InternalsVisibleTo, made some stuff public
parent
5a80c378
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
202 additions
and
205 deletions
+202
-205
ProtoBench.csproj
src/ProtoBench/ProtoBench.csproj
+93
-93
Generator.cs
src/ProtoGen/Generator.cs
+1
-1
ProgramPreprocess.cs
src/ProtoGen/ProgramPreprocess.cs
+2
-2
AssemblyInfo.cs
src/ProtoGen/Properties/AssemblyInfo.cs
+1
-6
SourceGenerators.cs
src/ProtoGen/SourceGenerators.cs
+3
-0
PopsicleListTest.cs
src/ProtocolBuffers.Test/Collections/PopsicleListTest.cs
+3
-0
EnumDescriptor.cs
src/ProtocolBuffers/Descriptors/EnumDescriptor.cs
+1
-1
FileDescriptor.cs
src/ProtocolBuffers/Descriptors/FileDescriptor.cs
+1
-1
NameHelpers.cs
src/ProtocolBuffers/NameHelpers.cs
+3
-3
AssemblyInfo.cs
src/ProtocolBuffers/Properties/AssemblyInfo.cs
+86
-90
WireFormat.cs
src/ProtocolBuffers/WireFormat.cs
+8
-8
No files found.
src/ProtoBench/ProtoBench.csproj
View file @
51eb1b40
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<Project
ToolsVersion=
"4.0"
DefaultTargets=
"Build"
xmlns=
"http://schemas.microsoft.com/developer/msbuild/2003"
>
<Project
ToolsVersion=
"4.0"
DefaultTargets=
"Build"
xmlns=
"http://schemas.microsoft.com/developer/msbuild/2003"
>
<PropertyGroup>
<PropertyGroup>
<Configuration
Condition=
" '$(Configuration)' == '' "
>
Debug
</Configuration>
<Configuration
Condition=
" '$(Configuration)' == '' "
>
Debug
</Configuration>
<Platform
Condition=
" '$(Platform)' == '' "
>
AnyCPU
</Platform>
<Platform
Condition=
" '$(Platform)' == '' "
>
AnyCPU
</Platform>
<ProductVersion>
9.0.30729
</ProductVersion>
<ProductVersion>
9.0.30729
</ProductVersion>
<SchemaVersion>
2.0
</SchemaVersion>
<SchemaVersion>
2.0
</SchemaVersion>
<ProjectGuid>
{C7A4A435-2813-41C8-AA87-BD914BA5223D}
</ProjectGuid>
<ProjectGuid>
{C7A4A435-2813-41C8-AA87-BD914BA5223D}
</ProjectGuid>
<OutputType>
Exe
</OutputType>
<OutputType>
Exe
</OutputType>
<AppDesignerFolder>
Properties
</AppDesignerFolder>
<AppDesignerFolder>
Properties
</AppDesignerFolder>
<RootNamespace>
Google.ProtocolBuffers.ProtoBench
</RootNamespace>
<RootNamespace>
Google.ProtocolBuffers.ProtoBench
</RootNamespace>
<AssemblyName>
ProtoBench
</AssemblyName>
<AssemblyName>
ProtoBench
</AssemblyName>
<TargetFrameworkVersion>
v4.0
</TargetFrameworkVersion>
<TargetFrameworkVersion>
v4.0
</TargetFrameworkVersion>
<FileAlignment>
512
</FileAlignment>
<FileAlignment>
512
</FileAlignment>
<FileUpgradeFlags>
<FileUpgradeFlags>
</FileUpgradeFlags>
</FileUpgradeFlags>
<UpgradeBackupLocation>
<UpgradeBackupLocation>
</UpgradeBackupLocation>
</UpgradeBackupLocation>
<OldToolsVersion>
3.5
</OldToolsVersion>
<OldToolsVersion>
3.5
</OldToolsVersion>
<PublishUrl>
publish\
</PublishUrl>
<PublishUrl>
publish\
</PublishUrl>
<Install>
true
</Install>
<Install>
true
</Install>
<InstallFrom>
Disk
</InstallFrom>
<InstallFrom>
Disk
</InstallFrom>
<UpdateEnabled>
false
</UpdateEnabled>
<UpdateEnabled>
false
</UpdateEnabled>
<UpdateMode>
Foreground
</UpdateMode>
<UpdateMode>
Foreground
</UpdateMode>
<UpdateInterval>
7
</UpdateInterval>
<UpdateInterval>
7
</UpdateInterval>
<UpdateIntervalUnits>
Days
</UpdateIntervalUnits>
<UpdateIntervalUnits>
Days
</UpdateIntervalUnits>
<UpdatePeriodically>
false
</UpdatePeriodically>
<UpdatePeriodically>
false
</UpdatePeriodically>
<UpdateRequired>
false
</UpdateRequired>
<UpdateRequired>
false
</UpdateRequired>
<MapFileExtensions>
true
</MapFileExtensions>
<MapFileExtensions>
true
</MapFileExtensions>
<ApplicationRevision>
0
</ApplicationRevision>
<ApplicationRevision>
0
</ApplicationRevision>
<ApplicationVersion>
1.0.0.%2a
</ApplicationVersion>
<ApplicationVersion>
1.0.0.%2a
</ApplicationVersion>
<IsWebBootstrapper>
false
</IsWebBootstrapper>
<IsWebBootstrapper>
false
</IsWebBootstrapper>
<UseApplicationTrust>
false
</UseApplicationTrust>
<UseApplicationTrust>
false
</UseApplicationTrust>
<BootstrapperEnabled>
true
</BootstrapperEnabled>
<BootstrapperEnabled>
true
</BootstrapperEnabled>
<TargetFrameworkProfile
/>
<TargetFrameworkProfile
/>
</PropertyGroup>
</PropertyGroup>
<PropertyGroup
Condition=
" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "
>
<PropertyGroup
Condition=
" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "
>
<DebugSymbols>
true
</DebugSymbols>
<DebugSymbols>
true
</DebugSymbols>
<DebugType>
full
</DebugType>
<DebugType>
full
</DebugType>
<Optimize>
false
</Optimize>
<Optimize>
false
</Optimize>
<OutputPath>
bin\Debug\
</OutputPath>
<OutputPath>
bin\Debug\
</OutputPath>
<DefineConstants>
DEBUG;TRACE
</DefineConstants>
<DefineConstants>
DEBUG;TRACE
</DefineConstants>
<ErrorReport>
prompt
</ErrorReport>
<ErrorReport>
prompt
</ErrorReport>
<WarningLevel>
4
</WarningLevel>
<WarningLevel>
4
</WarningLevel>
<CodeAnalysisRuleSet>
AllRules.ruleset
</CodeAnalysisRuleSet>
<CodeAnalysisRuleSet>
AllRules.ruleset
</CodeAnalysisRuleSet>
</PropertyGroup>
</PropertyGroup>
<PropertyGroup
Condition=
" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "
>
<PropertyGroup
Condition=
" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "
>
<DebugType>
pdbonly
</DebugType>
<DebugType>
pdbonly
</DebugType>
<Optimize>
true
</Optimize>
<Optimize>
true
</Optimize>
<OutputPath>
bin\Release\
</OutputPath>
<OutputPath>
bin\Release\
</OutputPath>
<DefineConstants>
TRACE
</DefineConstants>
<DefineConstants>
TRACE
</DefineConstants>
<ErrorReport>
prompt
</ErrorReport>
<ErrorReport>
prompt
</ErrorReport>
<WarningLevel>
4
</WarningLevel>
<WarningLevel>
4
</WarningLevel>
<CodeAnalysisRuleSet>
AllRules.ruleset
</CodeAnalysisRuleSet>
<CodeAnalysisRuleSet>
AllRules.ruleset
</CodeAnalysisRuleSet>
</PropertyGroup>
</PropertyGroup>
<ItemGroup>
<ItemGroup>
<Reference
Include=
"mscorlib"
/>
<Reference
Include=
"System"
/>
<Reference
Include=
"System"
/>
<Reference
Include=
"System.Data"
/>
<Reference
Include=
"System.Data"
/>
<Reference
Include=
"System.Xml"
/>
<Reference
Include=
"System.Xml"
/>
</ItemGroup>
</ItemGroup>
<ItemGroup>
<ItemGroup>
<Compile
Include=
"Program.cs"
/>
<Compile
Include=
"Program.cs"
/>
<Compile
Include=
"Properties\AssemblyInfo.cs"
/>
<Compile
Include=
"Properties\AssemblyInfo.cs"
/>
</ItemGroup>
</ItemGroup>
<ItemGroup>
<ItemGroup>
<ProjectReference
Include=
"..\ProtocolBuffers\ProtocolBuffers.csproj"
>
<ProjectReference
Include=
"..\ProtocolBuffers\ProtocolBuffers.csproj"
>
<Project>
{6908BDCE-D925-43F3-94AC-A531E6DF2591}
</Project>
<Project>
{6908BDCE-D925-43F3-94AC-A531E6DF2591}
</Project>
<Name>
ProtocolBuffers
</Name>
<Name>
ProtocolBuffers
</Name>
</ProjectReference>
</ProjectReference>
</ItemGroup>
</ItemGroup>
<ItemGroup>
<ItemGroup>
<None
Include=
"app.config"
/>
<None
Include=
"app.config"
/>
</ItemGroup>
</ItemGroup>
<ItemGroup>
<ItemGroup>
<BootstrapperPackage
Include=
"Microsoft.Net.Client.3.5"
>
<BootstrapperPackage
Include=
"Microsoft.Net.Client.3.5"
>
<Visible>
False
</Visible>
<Visible>
False
</Visible>
<ProductName>
.NET Framework 3.5 SP1 Client Profile
</ProductName>
<ProductName>
.NET Framework 3.5 SP1 Client Profile
</ProductName>
<Install>
false
</Install>
<Install>
false
</Install>
</BootstrapperPackage>
</BootstrapperPackage>
<BootstrapperPackage
Include=
"Microsoft.Net.Framework.3.5.SP1"
>
<BootstrapperPackage
Include=
"Microsoft.Net.Framework.3.5.SP1"
>
<Visible>
False
</Visible>
<Visible>
False
</Visible>
<ProductName>
.NET Framework 3.5 SP1
</ProductName>
<ProductName>
.NET Framework 3.5 SP1
</ProductName>
<Install>
true
</Install>
<Install>
true
</Install>
</BootstrapperPackage>
</BootstrapperPackage>
<BootstrapperPackage
Include=
"Microsoft.Windows.Installer.3.1"
>
<BootstrapperPackage
Include=
"Microsoft.Windows.Installer.3.1"
>
<Visible>
False
</Visible>
<Visible>
False
</Visible>
<ProductName>
Windows Installer 3.1
</ProductName>
<ProductName>
Windows Installer 3.1
</ProductName>
<Install>
true
</Install>
<Install>
true
</Install>
</BootstrapperPackage>
</BootstrapperPackage>
</ItemGroup>
</ItemGroup>
<Import
Project=
"$(MSBuildToolsPath)\Microsoft.CSharp.targets"
/>
<Import
Project=
"$(MSBuildToolsPath)\Microsoft.CSharp.targets"
/>
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
<Target Name="BeforeBuild">
</Target>
</Target>
<Target Name="AfterBuild">
<Target Name="AfterBuild">
</Target>
</Target>
-->
-->
</Project>
</Project>
\ No newline at end of file
src/ProtoGen/Generator.cs
View file @
51eb1b40
...
@@ -124,7 +124,7 @@ namespace Google.ProtocolBuffers.ProtoGen {
...
@@ -124,7 +124,7 @@ namespace Google.ProtocolBuffers.ProtoGen {
/// Note: this method is internal rather than private to allow testing.
/// Note: this method is internal rather than private to allow testing.
/// </summary>
/// </summary>
/// <exception cref="DependencyResolutionException">Not all dependencies could be resolved.</exception>
/// <exception cref="DependencyResolutionException">Not all dependencies could be resolved.</exception>
internal
static
IList
<
FileDescriptor
>
ConvertDescriptors
(
CSharpFileOptions
options
,
params
FileDescriptorSet
[]
descriptorProtos
)
{
public
static
IList
<
FileDescriptor
>
ConvertDescriptors
(
CSharpFileOptions
options
,
params
FileDescriptorSet
[]
descriptorProtos
)
{
// Simple strategy: Keep going through the list of protos to convert, only doing ones where
// Simple strategy: Keep going through the list of protos to convert, only doing ones where
// we've already converted all the dependencies, until we get to a stalemate
// we've already converted all the dependencies, until we get to a stalemate
List
<
FileDescriptorProto
>
fileList
=
new
List
<
FileDescriptorProto
>();
List
<
FileDescriptorProto
>
fileList
=
new
List
<
FileDescriptorProto
>();
...
...
src/ProtoGen/ProgramPreprocess.cs
View file @
51eb1b40
...
@@ -11,7 +11,7 @@ namespace Google.ProtocolBuffers.ProtoGen {
...
@@ -11,7 +11,7 @@ namespace Google.ProtocolBuffers.ProtoGen {
/// --descriptor_set_out= is specified the proto buffer file is kept, otherwise it will be removed
/// --descriptor_set_out= is specified the proto buffer file is kept, otherwise it will be removed
/// after code generation.
/// after code generation.
/// </summary>
/// </summary>
internal
class
ProgramPreprocess
{
public
class
ProgramPreprocess
{
private
static
int
Main
(
string
[]
args
)
{
private
static
int
Main
(
string
[]
args
)
{
try
{
try
{
return
Environment
.
ExitCode
=
Run
(
args
);
return
Environment
.
ExitCode
=
Run
(
args
);
...
@@ -22,7 +22,7 @@ namespace Google.ProtocolBuffers.ProtoGen {
...
@@ -22,7 +22,7 @@ namespace Google.ProtocolBuffers.ProtoGen {
}
}
}
}
internal
static
int
Run
(
params
string
[]
args
)
{
public
static
int
Run
(
params
string
[]
args
)
{
bool
deleteFile
=
false
;
bool
deleteFile
=
false
;
string
tempFile
=
null
;
string
tempFile
=
null
;
int
result
;
int
result
;
...
...
src/ProtoGen/Properties/AssemblyInfo.cs
View file @
51eb1b40
...
@@ -34,9 +34,4 @@ using System.Runtime.InteropServices;
...
@@ -34,9 +34,4 @@ using System.Runtime.InteropServices;
// [assembly: AssemblyVersion("2.3.0.277")]
// [assembly: AssemblyVersion("2.3.0.277")]
[assembly: AssemblyVersion("2.3.0.277")]
[assembly: AssemblyVersion("2.3.0.277")]
[assembly: AssemblyFileVersion("2.3.0.277")]
[assembly: AssemblyFileVersion("2.3.0.277")]
[
assembly
:
InternalsVisibleTo
(
"Google.ProtocolBuffers.ProtoGen.Test,PublicKey="
+
"0024000004800000940000000602000000240000525341310004000001000100cf43741ffc3e65"
+
"c85707245e144e90f1bb82f20d1b1555846008d4d5d5c9270a980350dcb1ddd40fcdde13c2780c"
+
"75c9057123daa5613cb6551e2b8bd2254e8f84b3893369869e5119b752442aef7156c4defc489b"
+
"96c44ff801fe8d94199e048f8ff414813c9c811a029bcd697040700dc66982539e9b368cb5e725"
+
"feed60f2"
)]
src/ProtoGen/SourceGenerators.cs
View file @
51eb1b40
...
@@ -37,6 +37,9 @@ using System.Collections.Generic;
...
@@ -37,6 +37,9 @@ using System.Collections.Generic;
using
Google.ProtocolBuffers.Descriptors
;
using
Google.ProtocolBuffers.Descriptors
;
namespace
Google.ProtocolBuffers.ProtoGen
{
namespace
Google.ProtocolBuffers.ProtoGen
{
public
delegate
TResult
Func
<
T
,
TResult
>(
T
arg
);
internal
static
class
SourceGenerators
{
internal
static
class
SourceGenerators
{
private
static
readonly
Dictionary
<
Type
,
Func
<
IDescriptor
,
ISourceGenerator
>>
GeneratorFactories
=
new
Dictionary
<
Type
,
Func
<
IDescriptor
,
ISourceGenerator
>>
{
private
static
readonly
Dictionary
<
Type
,
Func
<
IDescriptor
,
ISourceGenerator
>>
GeneratorFactories
=
new
Dictionary
<
Type
,
Func
<
IDescriptor
,
ISourceGenerator
>>
{
...
...
src/ProtocolBuffers.Test/Collections/PopsicleListTest.cs
View file @
51eb1b40
...
@@ -35,6 +35,9 @@
...
@@ -35,6 +35,9 @@
using
System
;
using
System
;
using
NUnit.Framework
;
using
NUnit.Framework
;
delegate
void
Action
();
namespace
Google.ProtocolBuffers.Collections
{
namespace
Google.ProtocolBuffers.Collections
{
[
TestFixture
]
[
TestFixture
]
public
class
PopsicleListTest
{
public
class
PopsicleListTest
{
...
...
src/ProtocolBuffers/Descriptors/EnumDescriptor.cs
View file @
51eb1b40
...
@@ -95,7 +95,7 @@ namespace Google.ProtocolBuffers.Descriptors {
...
@@ -95,7 +95,7 @@ namespace Google.ProtocolBuffers.Descriptors {
/// </summary>
/// </summary>
/// <param name="name">The unqualified name of the value (e.g. "FOO").</param>
/// <param name="name">The unqualified name of the value (e.g. "FOO").</param>
/// <returns>The value's descriptor, or null if not found.</returns>
/// <returns>The value's descriptor, or null if not found.</returns>
internal
EnumValueDescriptor
FindValueByName
(
string
name
)
{
public
EnumValueDescriptor
FindValueByName
(
string
name
)
{
return
File
.
DescriptorPool
.
FindSymbol
<
EnumValueDescriptor
>(
FullName
+
"."
+
name
);
return
File
.
DescriptorPool
.
FindSymbol
<
EnumValueDescriptor
>(
FullName
+
"."
+
name
);
}
}
...
...
src/ProtocolBuffers/Descriptors/FileDescriptor.cs
View file @
51eb1b40
...
@@ -81,7 +81,7 @@ namespace Google.ProtocolBuffers.Descriptors {
...
@@ -81,7 +81,7 @@ namespace Google.ProtocolBuffers.Descriptors {
/// Allows a file descriptor to be configured with a set of external options, e.g. from the
/// Allows a file descriptor to be configured with a set of external options, e.g. from the
/// command-line arguments to protogen.
/// command-line arguments to protogen.
/// </summary>
/// </summary>
internal
void
ConfigureWithDefaultOptions
(
CSharpFileOptions
options
)
{
public
void
ConfigureWithDefaultOptions
(
CSharpFileOptions
options
)
{
csharpFileOptions
=
BuildOrFakeWithDefaultOptions
(
options
);
csharpFileOptions
=
BuildOrFakeWithDefaultOptions
(
options
);
}
}
...
...
src/ProtocolBuffers/NameHelpers.cs
View file @
51eb1b40
...
@@ -39,13 +39,13 @@ namespace Google.ProtocolBuffers {
...
@@ -39,13 +39,13 @@ namespace Google.ProtocolBuffers {
/// <summary>
/// <summary>
/// Helpers for converting names to pascal case etc.
/// Helpers for converting names to pascal case etc.
/// </summary>
/// </summary>
internal
class
NameHelpers
{
public
class
NameHelpers
{
internal
static
string
UnderscoresToPascalCase
(
string
input
)
{
public
static
string
UnderscoresToPascalCase
(
string
input
)
{
return
UnderscoresToPascalOrCamelCase
(
input
,
true
);
return
UnderscoresToPascalOrCamelCase
(
input
,
true
);
}
}
internal
static
string
UnderscoresToCamelCase
(
string
input
)
{
public
static
string
UnderscoresToCamelCase
(
string
input
)
{
return
UnderscoresToPascalOrCamelCase
(
input
,
false
);
return
UnderscoresToPascalOrCamelCase
(
input
,
false
);
}
}
...
...
src/ProtocolBuffers/Properties/AssemblyInfo.cs
View file @
51eb1b40
// Protocol Buffers - Google's data interchange format
// Protocol Buffers - Google's data interchange format
// Copyright 2008 Google Inc. All rights reserved.
// Copyright 2008 Google Inc. All rights reserved.
// http://github.com/jskeet/dotnet-protobufs/
// http://github.com/jskeet/dotnet-protobufs/
// Original C++/Java/Python code:
// Original C++/Java/Python code:
// http://code.google.com/p/protobuf/
// http://code.google.com/p/protobuf/
//
//
// Redistribution and use in source and binary forms, with or without
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// modification, are permitted provided that the following conditions are
// met:
// met:
//
//
// * Redistributions of source code must retain the above copyright
// * Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
// notice, this list of conditions and the following disclaimer.
// * Redistributions in binary form must reproduce the above
// * Redistributions in binary form must reproduce the above
// copyright notice, this list of conditions and the following disclaimer
// copyright notice, this list of conditions and the following disclaimer
// in the documentation and/or other materials provided with the
// in the documentation and/or other materials provided with the
// distribution.
// distribution.
// * Neither the name of Google Inc. nor the names of its
// * Neither the name of Google Inc. nor the names of its
// contributors may be used to endorse or promote products derived from
// contributors may be used to endorse or promote products derived from
// this software without specific prior written permission.
// this software without specific prior written permission.
//
//
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
using
System
;
using
System
;
using
System.Reflection
;
using
System.Reflection
;
using
System.Runtime.InteropServices
;
using
System.Runtime.InteropServices
;
using
System.Runtime.CompilerServices
;
using
System.Runtime.CompilerServices
;
// General Information about an assembly is controlled through the following
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
// associated with an assembly.
[assembly: AssemblyTitle("ProtocolBuffers")]
[assembly: AssemblyTitle("ProtocolBuffers")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("ProtocolBuffers")]
[assembly: AssemblyProduct("ProtocolBuffers")]
[assembly: AssemblyCopyright("Copyright © 2008")]
[assembly: AssemblyCopyright("Copyright © 2008")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
[assembly: AssemblyCulture("")]
// Setting ComVisible to false makes the types in this assembly not visible
// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)]
[assembly: ComVisible(false)]
// The following GUID is for the ID of the typelib if this project is exposed to COM
// The following GUID is for the ID of the typelib if this project is exposed to COM
[assembly: Guid("279b643d-70e8-47ae-9eb1-500d1c48bab6")]
[assembly: Guid("279b643d-70e8-47ae-9eb1-500d1c48bab6")]
// Version information for an assembly consists of the following four values:
// Version information for an assembly consists of the following four values:
//
//
// Major Version
// Major Version
// Minor Version
// Minor Version
// Build Number
// Build Number
// Revision
// Revision
//
//
// You can specify all the values or you can default the Build and Revision Numbers
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// by using the '*' as shown below:
// [assembly: AssemblyVersion("2.3.0.277")]
// [assembly: AssemblyVersion("2.3.0.277")]
[assembly: AssemblyVersion("2.3.0.277")]
[assembly: AssemblyVersion("2.3.0.277")]
#if !COMPACT_FRAMEWORK_35
#if !COMPACT_FRAMEWORK_35
[assembly: AssemblyFileVersion("2.3.0.277")]
[assembly: AssemblyFileVersion("2.3.0.277")]
#endif
#endif
[
assembly
:
InternalsVisibleTo
(
"Google.ProtocolBuffers.Test,PublicKey="
+
[assembly: InternalsVisibleTo("Google.ProtocolBuffers.Test,PublicKey=" + Google.ProtocolBuffers.Properties.KnownKeys.PublishedKey)]
"00240000048000009400000006020000002400005253413100040000010001008179f2dd31a648"
+
[assembly: InternalsVisibleTo("Google.ProtocolBuffersLite.Test,PublicKey=" + Google.ProtocolBuffers.Properties.KnownKeys.PublishedKey)]
"2a2359dbe33e53701167a888e7c369a9ae3210b64f93861d8a7d286447e58bc167e3d99483beda"
+
"72f738140072bb69990bc4f98a21365de2c105e848974a3d210e938b0a56103c0662901efd6b78"
+
[assembly: CLSCompliant(true)]
"0ee6dbe977923d46a8fda18fb25c65dd73b149a5cd9f3100668b56649932dadd8cf5be52eb1dce"
+
"ad5cedbf"
)]
namespace
Google.ProtocolBuffers.Properties
[
assembly
:
InternalsVisibleTo
(
"Google.ProtocolBuffersLite.Test,PublicKey="
+
{
"00240000048000009400000006020000002400005253413100040000010001008179f2dd31a648"
+
class
KnownKeys
"2a2359dbe33e53701167a888e7c369a9ae3210b64f93861d8a7d286447e58bc167e3d99483beda"
+
{
"72f738140072bb69990bc4f98a21365de2c105e848974a3d210e938b0a56103c0662901efd6b78"
+
public
const
string
PublishedKey
=
@"00240000048000009400000006020000002400005253413100040000110000003b4611704c5379"
+
"0ee6dbe977923d46a8fda18fb25c65dd73b149a5cd9f3100668b56649932dadd8cf5be52eb1dce"
+
"39c3e0fbe9447dd6fa5462507f9dd4fd9fbf0712457e415b037da6d2c4eb5d2c7d29c86380af68"
+
"ad5cedbf"
)]
"7cf400401bb183f2a70bd3b631c1fcb7db8aa66c766694a9fb53fa765df6303104da8c978f3b6d"
+
[
assembly
:
InternalsVisibleTo
(
"ProtoGen,PublicKey="
+
"53909cd30685b8bc9922c726cd82b5995e9e2cfca6df7a2d189d851492e49f4b76f269ce6dfd08"
+
"00240000048000009400000006020000002400005253413100040000010001006d739020e13bdc"
+
"c34a7d98"
;
"038e86fa8aa5e1b13aae65d3ae79d622816c6067ab5b6955be50cc887130117582349208c13a55"
+
}
"5e09a6084558f989ccde66094f07822808d3a9b922b0e85b912070032e90bb35360be7efb7982b"
+
}
"702d7a5c6ed1e21d8ca587b4f4c9d2b81210d3641cc75f506cdfc628ac5453ff0a6886986c981d"
+
"12245bc7"
)]
[assembly: CLSCompliant(true)]
\ No newline at end of file
src/ProtocolBuffers/WireFormat.cs
View file @
51eb1b40
...
@@ -51,14 +51,14 @@ namespace Google.ProtocolBuffers {
...
@@ -51,14 +51,14 @@ namespace Google.ProtocolBuffers {
public
static
class
WireFormat
{
public
static
class
WireFormat
{
#region Fixed sizes.
#region Fixed sizes.
// TODO(jonskeet): Move these somewhere else. They're messy. Consider making FieldType a smarter kind of enum
// TODO(jonskeet): Move these somewhere else. They're messy. Consider making FieldType a smarter kind of enum
internal
const
int
Fixed32Size
=
4
;
public
const
int
Fixed32Size
=
4
;
internal
const
int
Fixed64Size
=
8
;
public
const
int
Fixed64Size
=
8
;
internal
const
int
SFixed32Size
=
4
;
public
const
int
SFixed32Size
=
4
;
internal
const
int
SFixed64Size
=
8
;
public
const
int
SFixed64Size
=
8
;
internal
const
int
FloatSize
=
4
;
public
const
int
FloatSize
=
4
;
internal
const
int
DoubleSize
=
8
;
public
const
int
DoubleSize
=
8
;
internal
const
int
BoolSize
=
1
;
public
const
int
BoolSize
=
1
;
#endregion
#endregion
[
CLSCompliant
(
false
)]
[
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