Class CodedInputStream
Implements
Inherited Members
Namespace: Google.Protobuf
Assembly: Google.Protobuf.dll
Syntax
public sealed class CodedInputStream : IDisposable
Constructors
CodedInputStream(byte[])
Declaration
public CodedInputStream(byte[] buffer)
Parameters
Type | Name | Description |
---|---|---|
byte[] | buffer |
CodedInputStream(byte[], int, int)
Declaration
public CodedInputStream(byte[] buffer, int offset, int length)
Parameters
Type | Name | Description |
---|---|---|
byte[] | buffer | |
int | offset | |
int | length |
CodedInputStream(Stream)
Declaration
public CodedInputStream(Stream input)
Parameters
Type | Name | Description |
---|---|---|
Stream | input |
CodedInputStream(Stream, bool)
Declaration
public CodedInputStream(Stream input, bool leaveOpen)
Parameters
Type | Name | Description |
---|---|---|
Stream | input | |
bool | leaveOpen |
Properties
IsAtEnd
Declaration
public bool IsAtEnd { get; }
Property Value
Type | Description |
---|---|
bool |
Position
Declaration
public long Position { get; }
Property Value
Type | Description |
---|---|
long |
RecursionLimit
Declaration
public int RecursionLimit { get; }
Property Value
Type | Description |
---|---|
int |
SizeLimit
Declaration
public int SizeLimit { get; }
Property Value
Type | Description |
---|---|
int |
Methods
CreateWithLimits(Stream, int, int)
Declaration
public static CodedInputStream CreateWithLimits(Stream input, int sizeLimit, int recursionLimit)
Parameters
Type | Name | Description |
---|---|---|
Stream | input | |
int | sizeLimit | |
int | recursionLimit |
Returns
Type | Description |
---|---|
CodedInputStream |
Dispose()
Declaration
public void Dispose()
MaybeConsumeTag(uint)
Declaration
public bool MaybeConsumeTag(uint tag)
Parameters
Type | Name | Description |
---|---|---|
uint | tag |
Returns
Type | Description |
---|---|
bool |
PeekTag()
Declaration
public uint PeekTag()
Returns
Type | Description |
---|---|
uint |
ReadBool()
Declaration
public bool ReadBool()
Returns
Type | Description |
---|---|
bool |
ReadBytes()
Declaration
public ByteString ReadBytes()
Returns
Type | Description |
---|---|
ByteString |
ReadDouble()
Declaration
public double ReadDouble()
Returns
Type | Description |
---|---|
double |
ReadEnum()
Declaration
public int ReadEnum()
Returns
Type | Description |
---|---|
int |
ReadFixed32()
Declaration
public uint ReadFixed32()
Returns
Type | Description |
---|---|
uint |
ReadFixed64()
Declaration
public ulong ReadFixed64()
Returns
Type | Description |
---|---|
ulong |
ReadFloat()
Declaration
public float ReadFloat()
Returns
Type | Description |
---|---|
float |
ReadGroup(IMessage)
Declaration
public void ReadGroup(IMessage builder)
Parameters
Type | Name | Description |
---|---|---|
IMessage | builder |
ReadInt32()
Declaration
public int ReadInt32()
Returns
Type | Description |
---|---|
int |
ReadInt64()
Declaration
public long ReadInt64()
Returns
Type | Description |
---|---|
long |
ReadLength()
Declaration
public int ReadLength()
Returns
Type | Description |
---|---|
int |
ReadMessage(IMessage)
Declaration
public void ReadMessage(IMessage builder)
Parameters
Type | Name | Description |
---|---|---|
IMessage | builder |
ReadRawMessage(IMessage)
Declaration
public void ReadRawMessage(IMessage message)
Parameters
Type | Name | Description |
---|---|---|
IMessage | message |
ReadSFixed32()
Declaration
public int ReadSFixed32()
Returns
Type | Description |
---|---|
int |
ReadSFixed64()
Declaration
public long ReadSFixed64()
Returns
Type | Description |
---|---|
long |
ReadSInt32()
Declaration
public int ReadSInt32()
Returns
Type | Description |
---|---|
int |
ReadSInt64()
Declaration
public long ReadSInt64()
Returns
Type | Description |
---|---|
long |
ReadString()
Declaration
public string ReadString()
Returns
Type | Description |
---|---|
string |
ReadTag()
Declaration
public uint ReadTag()
Returns
Type | Description |
---|---|
uint |
ReadUInt32()
Declaration
public uint ReadUInt32()
Returns
Type | Description |
---|---|
uint |
ReadUInt64()
Declaration
public ulong ReadUInt64()
Returns
Type | Description |
---|---|
ulong |
SkipLastField()
Declaration
public void SkipLastField()