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
d95293e3
Commit
d95293e3
authored
Jul 14, 2011
by
csharptest
Committed by
rogerk
Jul 14, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Integrated feedback from revision 1525875aec27
parent
541686c8
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
48 additions
and
13 deletions
+48
-13
CodedOutputStream.ComputeSize.cs
src/ProtocolBuffers/CodedOutputStream.ComputeSize.cs
+3
-13
ICodedInputStream.cs
src/ProtocolBuffers/ICodedInputStream.cs
+45
-0
ICodedOutputStream.cs
src/ProtocolBuffers/ICodedOutputStream.cs
+0
-0
No files found.
src/ProtocolBuffers/CodedOutputStream.ComputeSize.cs
View file @
d95293e3
...
...
@@ -41,19 +41,9 @@ using Google.ProtocolBuffers.Descriptors;
namespace
Google.ProtocolBuffers
{
/// <summary>
/// Encodes and writes protocol message fields.
/// </summary>
/// <remarks>
/// This class contains two kinds of methods: methods that write specific
/// protocol message constructs and field types (e.g. WriteTag and
/// WriteInt32) and methods that write low-level values (e.g.
/// WriteRawVarint32 and WriteRawBytes). If you are writing encoded protocol
/// messages, you should use the former methods, but if you are writing some
/// other format of your own design, use the latter. The names of the former
/// methods are taken from the protocol buffer type names, not .NET types.
/// (Hence WriteFloat instead of WriteSingle, and WriteBool instead of WriteBoolean.)
/// </remarks>
// This part of CodedOutputStream provides all the static entry points that are used
// by generated code and internally to compute the size of messages prior to being
// written to an instance of CodedOutputStream.
public
sealed
partial
class
CodedOutputStream
{
private
const
int
LittleEndian64Size
=
8
;
...
...
src/ProtocolBuffers/ICodedInputStream.cs
View file @
d95293e3
...
...
@@ -234,48 +234,93 @@ namespace Google.ProtocolBuffers
[
CLSCompliant
(
false
)]
bool
SkipField
();
/// <summary>
/// Reads one or more repeated string field values from the stream.
/// </summary>
[
CLSCompliant
(
false
)]
void
ReadStringArray
(
uint
fieldTag
,
string
fieldName
,
ICollection
<
string
>
list
);
/// <summary>
/// Reads one or more repeated ByteString field values from the stream.
/// </summary>
[
CLSCompliant
(
false
)]
void
ReadBytesArray
(
uint
fieldTag
,
string
fieldName
,
ICollection
<
ByteString
>
list
);
/// <summary>
/// Reads one or more repeated boolean field values from the stream.
/// </summary>
[
CLSCompliant
(
false
)]
void
ReadBoolArray
(
uint
fieldTag
,
string
fieldName
,
ICollection
<
bool
>
list
);
/// <summary>
/// Reads one or more repeated Int32 field values from the stream.
/// </summary>
[
CLSCompliant
(
false
)]
void
ReadInt32Array
(
uint
fieldTag
,
string
fieldName
,
ICollection
<
int
>
list
);
/// <summary>
/// Reads one or more repeated SInt32 field values from the stream.
/// </summary>
[
CLSCompliant
(
false
)]
void
ReadSInt32Array
(
uint
fieldTag
,
string
fieldName
,
ICollection
<
int
>
list
);
/// <summary>
/// Reads one or more repeated UInt32 field values from the stream.
/// </summary>
[
CLSCompliant
(
false
)]
void
ReadUInt32Array
(
uint
fieldTag
,
string
fieldName
,
ICollection
<
uint
>
list
);
/// <summary>
/// Reads one or more repeated Fixed32 field values from the stream.
/// </summary>
[
CLSCompliant
(
false
)]
void
ReadFixed32Array
(
uint
fieldTag
,
string
fieldName
,
ICollection
<
uint
>
list
);
/// <summary>
/// Reads one or more repeated SFixed32 field values from the stream.
/// </summary>
[
CLSCompliant
(
false
)]
void
ReadSFixed32Array
(
uint
fieldTag
,
string
fieldName
,
ICollection
<
int
>
list
);
/// <summary>
/// Reads one or more repeated Int64 field values from the stream.
/// </summary>
[
CLSCompliant
(
false
)]
void
ReadInt64Array
(
uint
fieldTag
,
string
fieldName
,
ICollection
<
long
>
list
);
/// <summary>
/// Reads one or more repeated SInt64 field values from the stream.
/// </summary>
[
CLSCompliant
(
false
)]
void
ReadSInt64Array
(
uint
fieldTag
,
string
fieldName
,
ICollection
<
long
>
list
);
/// <summary>
/// Reads one or more repeated UInt64 field values from the stream.
/// </summary>
[
CLSCompliant
(
false
)]
void
ReadUInt64Array
(
uint
fieldTag
,
string
fieldName
,
ICollection
<
ulong
>
list
);
/// <summary>
/// Reads one or more repeated Fixed64 field values from the stream.
/// </summary>
[
CLSCompliant
(
false
)]
void
ReadFixed64Array
(
uint
fieldTag
,
string
fieldName
,
ICollection
<
ulong
>
list
);
/// <summary>
/// Reads one or more repeated SFixed64 field values from the stream.
/// </summary>
[
CLSCompliant
(
false
)]
void
ReadSFixed64Array
(
uint
fieldTag
,
string
fieldName
,
ICollection
<
long
>
list
);
/// <summary>
/// Reads one or more repeated Double field values from the stream.
/// </summary>
[
CLSCompliant
(
false
)]
void
ReadDoubleArray
(
uint
fieldTag
,
string
fieldName
,
ICollection
<
double
>
list
);
/// <summary>
/// Reads one or more repeated Float field values from the stream.
/// </summary>
[
CLSCompliant
(
false
)]
void
ReadFloatArray
(
uint
fieldTag
,
string
fieldName
,
ICollection
<
float
>
list
);
}
...
...
src/ProtocolBuffers/ICodedOutputStream.cs
View file @
d95293e3
This diff is collapsed.
Click to expand it.
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