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
cc8d2aaa
Commit
cc8d2aaa
authored
Jun 03, 2011
by
csharptest
Committed by
rogerk
Jun 03, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Extracted initial ICodedOutputStream interface
parent
90922db7
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
87 additions
and
0 deletions
+87
-0
CodedOutputStream.ComputeSize.cs
src/ProtocolBuffers/CodedOutputStream.ComputeSize.cs
+0
-0
CodedOutputStream.cs
src/ProtocolBuffers/CodedOutputStream.cs
+0
-0
ICodedOutputStream.cs
src/ProtocolBuffers/ICodedOutputStream.cs
+85
-0
ProtocolBuffers.csproj
src/ProtocolBuffers/ProtocolBuffers.csproj
+2
-0
No files found.
src/ProtocolBuffers/CodedOutputStream.ComputeSize.cs
0 → 100644
View file @
cc8d2aaa
This diff is collapsed.
Click to expand it.
src/ProtocolBuffers/CodedOutputStream.cs
View file @
cc8d2aaa
This diff is collapsed.
Click to expand it.
src/ProtocolBuffers/ICodedOutputStream.cs
0 → 100644
View file @
cc8d2aaa
using
System
;
using
Google.ProtocolBuffers.Descriptors
;
namespace
Google.ProtocolBuffers
{
public
interface
ICodedOutputStream
{
/// <summary>
/// Writes a double field value, including tag, to the stream.
/// </summary>
void
WriteDouble
(
int
fieldNumber
,
string
fieldName
,
double
value
);
/// <summary>
/// Writes a float field value, including tag, to the stream.
/// </summary>
void
WriteFloat
(
int
fieldNumber
,
string
fieldName
,
float
value
);
/// <summary>
/// Writes a uint64 field value, including tag, to the stream.
/// </summary>
[
CLSCompliant
(
false
)]
void
WriteUInt64
(
int
fieldNumber
,
string
fieldName
,
ulong
value
);
/// <summary>
/// Writes an int64 field value, including tag, to the stream.
/// </summary>
void
WriteInt64
(
int
fieldNumber
,
string
fieldName
,
long
value
);
/// <summary>
/// Writes an int32 field value, including tag, to the stream.
/// </summary>
void
WriteInt32
(
int
fieldNumber
,
string
fieldName
,
int
value
);
/// <summary>
/// Writes a fixed64 field value, including tag, to the stream.
/// </summary>
[
CLSCompliant
(
false
)]
void
WriteFixed64
(
int
fieldNumber
,
string
fieldName
,
ulong
value
);
/// <summary>
/// Writes a fixed32 field value, including tag, to the stream.
/// </summary>
[
CLSCompliant
(
false
)]
void
WriteFixed32
(
int
fieldNumber
,
string
fieldName
,
uint
value
);
/// <summary>
/// Writes a bool field value, including tag, to the stream.
/// </summary>
void
WriteBool
(
int
fieldNumber
,
string
fieldName
,
bool
value
);
/// <summary>
/// Writes a string field value, including tag, to the stream.
/// </summary>
void
WriteString
(
int
fieldNumber
,
string
fieldName
,
string
value
);
/// <summary>
/// Writes a group field value, including tag, to the stream.
/// </summary>
void
WriteGroup
(
int
fieldNumber
,
string
fieldName
,
IMessageLite
value
);
[
Obsolete
]
void
WriteUnknownGroup
(
int
fieldNumber
,
string
fieldName
,
IMessageLite
value
);
void
WriteMessage
(
int
fieldNumber
,
string
fieldName
,
IMessageLite
value
);
void
WriteBytes
(
int
fieldNumber
,
string
fieldName
,
ByteString
value
);
[
CLSCompliant
(
false
)]
void
WriteUInt32
(
int
fieldNumber
,
string
fieldName
,
uint
value
);
void
WriteEnum
(
int
fieldNumber
,
string
fieldName
,
int
value
,
string
textValue
);
void
WriteSFixed32
(
int
fieldNumber
,
string
fieldName
,
int
value
);
void
WriteSFixed64
(
int
fieldNumber
,
string
fieldName
,
long
value
);
void
WriteSInt32
(
int
fieldNumber
,
string
fieldName
,
int
value
);
void
WriteSInt64
(
int
fieldNumber
,
string
fieldName
,
long
value
);
void
WriteMessageSetExtension
(
int
fieldNumber
,
string
fieldName
,
IMessageLite
value
);
void
WriteMessageArray
(
int
fieldNumber
,
string
fieldName
,
System
.
Collections
.
IEnumerable
list
);
void
WriteGroupArray
(
int
fieldNumber
,
string
fieldName
,
System
.
Collections
.
IEnumerable
list
);
void
WriteArray
(
FieldType
fieldType
,
int
fieldNumber
,
string
fieldName
,
System
.
Collections
.
IEnumerable
list
);
void
WritePackedArray
(
FieldType
fieldType
,
int
fieldNumber
,
string
fieldName
,
System
.
Collections
.
IEnumerable
list
);
void
WritePackedArray
(
FieldType
fieldType
,
int
fieldNumber
,
string
fieldName
,
int
calculatedSize
,
System
.
Collections
.
IEnumerable
list
);
void
WriteField
(
FieldType
fieldType
,
int
fieldNumber
,
string
fieldName
,
object
value
);
void
Flush
();
}
}
\ No newline at end of file
src/ProtocolBuffers/ProtocolBuffers.csproj
View file @
cc8d2aaa
...
...
@@ -103,6 +103,7 @@
<Compile
Include=
"Collections\Enumerables.cs"
/>
<Compile
Include=
"Collections\IPopsicleList.cs"
/>
<Compile
Include=
"Collections\PopsicleList.cs"
/>
<Compile
Include=
"CodedOutputStream.ComputeSize.cs"
/>
<Compile
Include=
"Delegates.cs"
/>
<Compile
Include=
"CodedInputStream.cs"
/>
<Compile
Include=
"CodedOutputStream.cs"
/>
...
...
@@ -163,6 +164,7 @@
<Compile
Include=
"IBuilderLite.cs"
>
<SubType>
Code
</SubType>
</Compile>
<Compile
Include=
"ICodedOutputStream.cs"
/>
<Compile
Include=
"IMessage.cs"
/>
<Compile
Include=
"IMessageLite.cs"
/>
<Compile
Include=
"InvalidProtocolBufferException.cs"
/>
...
...
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